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/plugin-storage.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/plugin-storage.ts')
-rw-r--r-- | server/tests/plugins/plugin-storage.ts | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/server/tests/plugins/plugin-storage.ts b/server/tests/plugins/plugin-storage.ts index 30e231439..5745914a5 100644 --- a/server/tests/plugins/plugin-storage.ts +++ b/server/tests/plugins/plugin-storage.ts | |||
@@ -5,15 +5,22 @@ import { expect } from 'chai' | |||
5 | import { pathExists, readdir, readFile } from 'fs-extra' | 5 | import { pathExists, readdir, readFile } from 'fs-extra' |
6 | import { join } from 'path' | 6 | import { join } from 'path' |
7 | import { HttpStatusCode } from '@shared/core-utils' | 7 | import { HttpStatusCode } from '@shared/core-utils' |
8 | import { cleanupTests, flushAndRunServer, makeGetRequest, PluginsCommand, ServerInfo, setAccessTokensToServers } from '@shared/extra-utils' | 8 | import { |
9 | cleanupTests, | ||
10 | createSingleServer, | ||
11 | makeGetRequest, | ||
12 | PeerTubeServer, | ||
13 | PluginsCommand, | ||
14 | setAccessTokensToServers | ||
15 | } from '@shared/extra-utils' | ||
9 | 16 | ||
10 | describe('Test plugin storage', function () { | 17 | describe('Test plugin storage', function () { |
11 | let server: ServerInfo | 18 | let server: PeerTubeServer |
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('-six') }) | 26 | await server.plugins.install({ path: PluginsCommand.getPluginTestPath('-six') }) |