diff options
Diffstat (limited to 'server/tests/api/videos/video-blacklist.ts')
-rw-r--r-- | server/tests/api/videos/video-blacklist.ts | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/server/tests/api/videos/video-blacklist.ts b/server/tests/api/videos/video-blacklist.ts index d1cefa5d7..de4c68f1d 100644 --- a/server/tests/api/videos/video-blacklist.ts +++ b/server/tests/api/videos/video-blacklist.ts | |||
@@ -5,16 +5,15 @@ import 'mocha' | |||
5 | import { | 5 | import { |
6 | addVideoToBlacklist, | 6 | addVideoToBlacklist, |
7 | flushAndRunMultipleServers, | 7 | flushAndRunMultipleServers, |
8 | flushTests, | ||
9 | getVideosList, | 8 | getVideosList, |
10 | killallServers, | 9 | killallServers, |
11 | searchVideo, | 10 | searchVideo, |
12 | ServerInfo, | 11 | ServerInfo, |
13 | setAccessTokensToServers, | 12 | setAccessTokensToServers, |
14 | uploadVideo, | 13 | uploadVideo |
15 | wait | ||
16 | } from '../../utils/index' | 14 | } from '../../utils/index' |
17 | import { doubleFollow } from '../../utils/server/follows' | 15 | import { doubleFollow } from '../../utils/server/follows' |
16 | import { waitJobs } from '../../utils/server/jobs' | ||
18 | 17 | ||
19 | const expect = chai.expect | 18 | const expect = chai.expect |
20 | 19 | ||
@@ -41,7 +40,7 @@ describe('Test video blacklists', function () { | |||
41 | await uploadVideo(servers[1].url, servers[1].accessToken, videoAttributes) | 40 | await uploadVideo(servers[1].url, servers[1].accessToken, videoAttributes) |
42 | 41 | ||
43 | // Wait videos propagation, server 2 has transcoding enabled | 42 | // Wait videos propagation, server 2 has transcoding enabled |
44 | await wait(10000) | 43 | await waitJobs(servers) |
45 | 44 | ||
46 | const res = await getVideosList(servers[0].url) | 45 | const res = await getVideosList(servers[0].url) |
47 | const videos = res.body.data | 46 | const videos = res.body.data |
@@ -89,10 +88,5 @@ describe('Test video blacklists', function () { | |||
89 | 88 | ||
90 | after(async function () { | 89 | after(async function () { |
91 | killallServers(servers) | 90 | killallServers(servers) |
92 | |||
93 | // Keep the logs if the test failed | ||
94 | if (this['ok']) { | ||
95 | await flushTests() | ||
96 | } | ||
97 | }) | 91 | }) |
98 | }) | 92 | }) |