diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-24 10:53:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-24 16:26:23 +0200 |
commit | 210feb6cc484a6c5c63c98f770de34e223f944cb (patch) | |
tree | d1d841892a7ac87ac0d434194597606a375aaed1 /server/tests/api/check-params/video-playlists.ts | |
parent | 9cc8d43e37a61709e7275c2a799bdf976dd940ca (diff) | |
download | PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.tar.gz PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.tar.zst PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.zip |
Cleanup tests
Diffstat (limited to 'server/tests/api/check-params/video-playlists.ts')
-rw-r--r-- | server/tests/api/check-params/video-playlists.ts | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/server/tests/api/check-params/video-playlists.ts b/server/tests/api/check-params/video-playlists.ts index 0f3484763..0edb51682 100644 --- a/server/tests/api/check-params/video-playlists.ts +++ b/server/tests/api/check-params/video-playlists.ts | |||
@@ -14,7 +14,7 @@ import { | |||
14 | makeGetRequest, | 14 | makeGetRequest, |
15 | removeVideoFromPlaylist, | 15 | removeVideoFromPlaylist, |
16 | reorderVideosPlaylist, | 16 | reorderVideosPlaylist, |
17 | runServer, | 17 | flushAndRunServer, |
18 | ServerInfo, | 18 | ServerInfo, |
19 | setAccessTokensToServers, setDefaultVideoChannel, | 19 | setAccessTokensToServers, setDefaultVideoChannel, |
20 | updateVideoPlaylist, | 20 | updateVideoPlaylist, |
@@ -43,9 +43,7 @@ describe('Test video playlists API validator', function () { | |||
43 | before(async function () { | 43 | before(async function () { |
44 | this.timeout(30000) | 44 | this.timeout(30000) |
45 | 45 | ||
46 | await flushTests() | 46 | server = await flushAndRunServer(1) |
47 | |||
48 | server = await runServer(1) | ||
49 | 47 | ||
50 | await setAccessTokensToServers([ server ]) | 48 | await setAccessTokensToServers([ server ]) |
51 | await setDefaultVideoChannel([ server ]) | 49 | await setDefaultVideoChannel([ server ]) |
@@ -670,12 +668,7 @@ describe('Test video playlists API validator', function () { | |||
670 | }) | 668 | }) |
671 | }) | 669 | }) |
672 | 670 | ||
673 | after(async function () { | 671 | after(function () { |
674 | killallServers([ server ]) | 672 | killallServers([ server ]) |
675 | |||
676 | // Keep the logs if the test failed | ||
677 | if (this['ok']) { | ||
678 | await flushTests() | ||
679 | } | ||
680 | }) | 673 | }) |
681 | }) | 674 | }) |