diff options
Diffstat (limited to 'server/tests/cli/plugins.ts')
-rw-r--r-- | server/tests/cli/plugins.ts | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/server/tests/cli/plugins.ts b/server/tests/cli/plugins.ts index 178a7a2d9..42651d79c 100644 --- a/server/tests/cli/plugins.ts +++ b/server/tests/cli/plugins.ts | |||
@@ -4,21 +4,20 @@ import 'mocha' | |||
4 | import { expect } from 'chai' | 4 | import { expect } from 'chai' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
7 | flushAndRunServer, | 7 | createSingleServer, |
8 | killallServers, | 8 | killallServers, |
9 | PluginsCommand, | 9 | PluginsCommand, |
10 | reRunServer, | 10 | PeerTubeServer, |
11 | ServerInfo, | ||
12 | setAccessTokensToServers | 11 | setAccessTokensToServers |
13 | } from '../../../shared/extra-utils' | 12 | } from '../../../shared/extra-utils' |
14 | 13 | ||
15 | describe('Test plugin scripts', function () { | 14 | describe('Test plugin scripts', function () { |
16 | let server: ServerInfo | 15 | let server: PeerTubeServer |
17 | 16 | ||
18 | before(async function () { | 17 | before(async function () { |
19 | this.timeout(30000) | 18 | this.timeout(30000) |
20 | 19 | ||
21 | server = await flushAndRunServer(1) | 20 | server = await createSingleServer(1) |
22 | await setAccessTokensToServers([ server ]) | 21 | await setAccessTokensToServers([ server ]) |
23 | }) | 22 | }) |
24 | 23 | ||
@@ -40,7 +39,7 @@ describe('Test plugin scripts', function () { | |||
40 | this.timeout(30000) | 39 | this.timeout(30000) |
41 | 40 | ||
42 | await killallServers([ server ]) | 41 | await killallServers([ server ]) |
43 | await reRunServer(server) | 42 | await server.run() |
44 | 43 | ||
45 | const config = await server.config.getConfig() | 44 | const config = await server.config.getConfig() |
46 | 45 | ||
@@ -63,7 +62,7 @@ describe('Test plugin scripts', function () { | |||
63 | this.timeout(30000) | 62 | this.timeout(30000) |
64 | 63 | ||
65 | await killallServers([ server ]) | 64 | await killallServers([ server ]) |
66 | await reRunServer(server) | 65 | await server.run() |
67 | 66 | ||
68 | const config = await server.config.getConfig() | 67 | const config = await server.config.getConfig() |
69 | 68 | ||