diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:47:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch) | |
tree | eaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tests/plugins/id-and-pass-auth.ts | |
parent | 89d241a79c262b9775c233b73cff080043ebb5e6 (diff) | |
download | PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip |
Use an object to represent a server
Diffstat (limited to 'server/tests/plugins/id-and-pass-auth.ts')
-rw-r--r-- | server/tests/plugins/id-and-pass-auth.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/plugins/id-and-pass-auth.ts b/server/tests/plugins/id-and-pass-auth.ts index 203996af8..981bcad91 100644 --- a/server/tests/plugins/id-and-pass-auth.ts +++ b/server/tests/plugins/id-and-pass-auth.ts | |||
@@ -3,11 +3,11 @@ | |||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import { expect } from 'chai' | 4 | import { expect } from 'chai' |
5 | import { HttpStatusCode } from '@shared/core-utils' | 5 | import { HttpStatusCode } from '@shared/core-utils' |
6 | import { cleanupTests, flushAndRunServer, PluginsCommand, ServerInfo, setAccessTokensToServers, wait } from '@shared/extra-utils' | 6 | import { cleanupTests, createSingleServer, PluginsCommand, PeerTubeServer, setAccessTokensToServers, wait } from '@shared/extra-utils' |
7 | import { UserRole } from '@shared/models' | 7 | import { UserRole } from '@shared/models' |
8 | 8 | ||
9 | describe('Test id and pass auth plugins', function () { | 9 | describe('Test id and pass auth plugins', function () { |
10 | let server: ServerInfo | 10 | let server: PeerTubeServer |
11 | 11 | ||
12 | let crashAccessToken: string | 12 | let crashAccessToken: string |
13 | let crashRefreshToken: string | 13 | let crashRefreshToken: string |
@@ -18,7 +18,7 @@ describe('Test id and pass auth plugins', function () { | |||
18 | before(async function () { | 18 | before(async function () { |
19 | this.timeout(30000) | 19 | this.timeout(30000) |
20 | 20 | ||
21 | server = await flushAndRunServer(1) | 21 | server = await createSingleServer(1) |
22 | await setAccessTokensToServers([ server ]) | 22 | await setAccessTokensToServers([ server ]) |
23 | 23 | ||
24 | for (const suffix of [ 'one', 'two', 'three' ]) { | 24 | for (const suffix of [ 'one', 'two', 'three' ]) { |