diff options
Diffstat (limited to 'server/tests/plugins/plugin-unloading.ts')
-rw-r--r-- | server/tests/plugins/plugin-unloading.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/server/tests/plugins/plugin-unloading.ts b/server/tests/plugins/plugin-unloading.ts index 26a27abca..6c405b7f5 100644 --- a/server/tests/plugins/plugin-unloading.ts +++ b/server/tests/plugins/plugin-unloading.ts | |||
@@ -3,17 +3,24 @@ | |||
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, makeGetRequest, PluginsCommand, ServerInfo, setAccessTokensToServers } from '@shared/extra-utils' | 6 | import { |
7 | cleanupTests, | ||
8 | createSingleServer, | ||
9 | makeGetRequest, | ||
10 | PeerTubeServer, | ||
11 | PluginsCommand, | ||
12 | setAccessTokensToServers | ||
13 | } from '@shared/extra-utils' | ||
7 | 14 | ||
8 | describe('Test plugins module unloading', function () { | 15 | describe('Test plugins module unloading', function () { |
9 | let server: ServerInfo = null | 16 | let server: PeerTubeServer = null |
10 | const requestPath = '/plugins/test-unloading/router/get' | 17 | const requestPath = '/plugins/test-unloading/router/get' |
11 | let value: string = null | 18 | let value: string = null |
12 | 19 | ||
13 | before(async function () { | 20 | before(async function () { |
14 | this.timeout(30000) | 21 | this.timeout(30000) |
15 | 22 | ||
16 | server = await flushAndRunServer(1) | 23 | server = await createSingleServer(1) |
17 | await setAccessTokensToServers([ server ]) | 24 | await setAccessTokensToServers([ server ]) |
18 | 25 | ||
19 | await server.plugins.install({ path: PluginsCommand.getPluginTestPath('-unloading') }) | 26 | await server.plugins.install({ path: PluginsCommand.getPluginTestPath('-unloading') }) |