diff options
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 | }) |