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/api/videos/video-comments.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/api/videos/video-comments.ts')
-rw-r--r-- | server/tests/api/videos/video-comments.ts | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/server/tests/api/videos/video-comments.ts b/server/tests/api/videos/video-comments.ts index f83d95088..d6e07c5b3 100644 --- a/server/tests/api/videos/video-comments.ts +++ b/server/tests/api/videos/video-comments.ts | |||
@@ -5,11 +5,20 @@ import 'mocha' | |||
5 | import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' | 5 | import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' |
6 | import { testImage } from '../../utils' | 6 | import { testImage } from '../../utils' |
7 | import { | 7 | import { |
8 | dateIsValid, flushTests, killallServers, runServer, ServerInfo, setAccessTokensToServers, updateMyAvatar, | 8 | dateIsValid, |
9 | flushTests, | ||
10 | killallServers, | ||
11 | runServer, | ||
12 | ServerInfo, | ||
13 | setAccessTokensToServers, | ||
14 | updateMyAvatar, | ||
9 | uploadVideo | 15 | uploadVideo |
10 | } from '../../utils/index' | 16 | } from '../../utils/index' |
11 | import { | 17 | import { |
12 | addVideoCommentReply, addVideoCommentThread, deleteVideoComment, getVideoCommentThreads, | 18 | addVideoCommentReply, |
19 | addVideoCommentThread, | ||
20 | deleteVideoComment, | ||
21 | getVideoCommentThreads, | ||
13 | getVideoThreadComments | 22 | getVideoThreadComments |
14 | } from '../../utils/videos/video-comments' | 23 | } from '../../utils/videos/video-comments' |
15 | 24 | ||
@@ -194,10 +203,5 @@ describe('Test video comments', function () { | |||
194 | 203 | ||
195 | after(async function () { | 204 | after(async function () { |
196 | killallServers([ server ]) | 205 | killallServers([ server ]) |
197 | |||
198 | // Keep the logs if the test failed | ||
199 | if (this['ok']) { | ||
200 | await flushTests() | ||
201 | } | ||
202 | }) | 206 | }) |
203 | }) | 207 | }) |