aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/feeds/feeds.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/feeds/feeds.ts')
-rw-r--r--server/tests/feeds/feeds.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/feeds/feeds.ts b/server/tests/feeds/feeds.ts
index f65148f00..90450a0bb 100644
--- a/server/tests/feeds/feeds.ts
+++ b/server/tests/feeds/feeds.ts
@@ -11,12 +11,12 @@ import {
11 killallServers, 11 killallServers,
12 ServerInfo, 12 ServerInfo,
13 setAccessTokensToServers, 13 setAccessTokensToServers,
14 uploadVideo, 14 uploadVideo
15 wait
16} from '../utils' 15} from '../utils'
17import { join } from 'path' 16import { join } from 'path'
18import * as libxmljs from 'libxmljs' 17import * as libxmljs from 'libxmljs'
19import { addVideoCommentThread } from '../utils/videos/video-comments' 18import { addVideoCommentThread } from '../utils/videos/video-comments'
19import { waitJobs } from '../utils/server/jobs'
20 20
21chai.use(require('chai-xml')) 21chai.use(require('chai-xml'))
22chai.use(require('chai-json-schema')) 22chai.use(require('chai-json-schema'))
@@ -46,7 +46,7 @@ describe('Test syndication feeds', () => {
46 await addVideoCommentThread(servers[0].url, servers[0].accessToken, videoId, 'super comment 1') 46 await addVideoCommentThread(servers[0].url, servers[0].accessToken, videoId, 'super comment 1')
47 await addVideoCommentThread(servers[0].url, servers[0].accessToken, videoId, 'super comment 2') 47 await addVideoCommentThread(servers[0].url, servers[0].accessToken, videoId, 'super comment 2')
48 48
49 await wait(10000) 49 await waitJobs(servers)
50 }) 50 })
51 51
52 describe('All feed', function () { 52 describe('All feed', function () {