aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli/plugins.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 09:47:51 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch)
treeeaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tests/cli/plugins.ts
parent89d241a79c262b9775c233b73cff080043ebb5e6 (diff)
downloadPeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz
PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst
PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip
Use an object to represent a server
Diffstat (limited to 'server/tests/cli/plugins.ts')
-rw-r--r--server/tests/cli/plugins.ts13
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'
4import { expect } from 'chai' 4import { expect } from 'chai'
5import { 5import {
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
15describe('Test plugin scripts', function () { 14describe('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