From 3cd0734fd9b0ff21aaef02317a874e8f1c06e027 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 Jun 2018 10:06:50 +0200 Subject: Improve tests when waiting pending jobs --- server/tests/api/videos/single-server.ts | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'server/tests/api/videos/single-server.ts') diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts index 5e163e9df..d8af94e8f 100644 --- a/server/tests/api/videos/single-server.ts +++ b/server/tests/api/videos/single-server.ts @@ -5,10 +5,31 @@ import { keyBy } from 'lodash' import 'mocha' import { VideoPrivacy } from '../../../../shared/models/videos' import { - checkVideoFilesWereRemoved, completeVideoCheck, flushTests, getVideo, getVideoCategories, getVideoLanguages, getVideoLicences, - getVideoPrivacies, getVideosList, getVideosListPagination, getVideosListSort, killallServers, rateVideo, removeVideo, runServer, - searchVideo, searchVideoWithPagination, searchVideoWithSort, ServerInfo, setAccessTokensToServers, testImage, updateVideo, uploadVideo, - viewVideo, wait + checkVideoFilesWereRemoved, + completeVideoCheck, + flushTests, + getVideo, + getVideoCategories, + getVideoLanguages, + getVideoLicences, + getVideoPrivacies, + getVideosList, + getVideosListPagination, + getVideosListSort, + killallServers, + rateVideo, + removeVideo, + runServer, + searchVideo, + searchVideoWithPagination, + searchVideoWithSort, + ServerInfo, + setAccessTokensToServers, + testImage, + updateVideo, + uploadVideo, + viewVideo, + wait } from '../../utils' const expect = chai.expect -- cgit v1.2.3