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/videos/videos-views-cleaner.ts | |
parent | 9cc8d43e37a61709e7275c2a799bdf976dd940ca (diff) | |
download | PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.tar.gz PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.tar.zst PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.zip |
Cleanup tests
Diffstat (limited to 'server/tests/api/videos/videos-views-cleaner.ts')
-rw-r--r-- | server/tests/api/videos/videos-views-cleaner.ts | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/server/tests/api/videos/videos-views-cleaner.ts b/server/tests/api/videos/videos-views-cleaner.ts index 4001969c3..80cecdd23 100644 --- a/server/tests/api/videos/videos-views-cleaner.ts +++ b/server/tests/api/videos/videos-views-cleaner.ts | |||
@@ -7,7 +7,7 @@ import { | |||
7 | flushTests, | 7 | flushTests, |
8 | killallServers, | 8 | killallServers, |
9 | reRunServer, | 9 | reRunServer, |
10 | runServer, | 10 | flushAndRunServer, |
11 | ServerInfo, | 11 | ServerInfo, |
12 | setAccessTokensToServers, | 12 | setAccessTokensToServers, |
13 | uploadVideo, uploadVideoAndGetId, viewVideo, wait, countVideoViewsOf, doubleFollow, waitJobs | 13 | uploadVideo, uploadVideoAndGetId, viewVideo, wait, countVideoViewsOf, doubleFollow, waitJobs |
@@ -27,8 +27,6 @@ describe('Test video views cleaner', function () { | |||
27 | before(async function () { | 27 | before(async function () { |
28 | this.timeout(50000) | 28 | this.timeout(50000) |
29 | 29 | ||
30 | await flushTests() | ||
31 | |||
32 | servers = await flushAndRunMultipleServers(2) | 30 | servers = await flushAndRunMultipleServers(2) |
33 | await setAccessTokensToServers(servers) | 31 | await setAccessTokensToServers(servers) |
34 | 32 | ||
@@ -102,12 +100,7 @@ describe('Test video views cleaner', function () { | |||
102 | } | 100 | } |
103 | }) | 101 | }) |
104 | 102 | ||
105 | after(async function () { | 103 | after(function () { |
106 | killallServers(servers) | 104 | killallServers(servers) |
107 | |||
108 | // Keep the logs if the test failed | ||
109 | if (this['ok']) { | ||
110 | await flushTests() | ||
111 | } | ||
112 | }) | 105 | }) |
113 | }) | 106 | }) |