diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-13 10:06:50 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-13 10:22:53 +0200 |
commit | 3cd0734fd9b0ff21aaef02317a874e8f1c06e027 (patch) | |
tree | 9e8622d269919addd35b462141ab5f22236aa6f4 /server/tests/feeds/feeds.ts | |
parent | 2186386cca113506791583cb07d6ccacba7af4e0 (diff) | |
download | PeerTube-3cd0734fd9b0ff21aaef02317a874e8f1c06e027.tar.gz PeerTube-3cd0734fd9b0ff21aaef02317a874e8f1c06e027.tar.zst PeerTube-3cd0734fd9b0ff21aaef02317a874e8f1c06e027.zip |
Improve tests when waiting pending jobs
Diffstat (limited to 'server/tests/feeds/feeds.ts')
-rw-r--r-- | server/tests/feeds/feeds.ts | 6 |
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' |
17 | import { join } from 'path' | 16 | import { join } from 'path' |
18 | import * as libxmljs from 'libxmljs' | 17 | import * as libxmljs from 'libxmljs' |
19 | import { addVideoCommentThread } from '../utils/videos/video-comments' | 18 | import { addVideoCommentThread } from '../utils/videos/video-comments' |
19 | import { waitJobs } from '../utils/server/jobs' | ||
20 | 20 | ||
21 | chai.use(require('chai-xml')) | 21 | chai.use(require('chai-xml')) |
22 | chai.use(require('chai-json-schema')) | 22 | chai.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 () { |