X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-schedule-update.ts;h=204f436116199b2295cba3d79d60aa15dff14174;hb=0d8ecb7592577f54012413a2b5a9b159cfc90399;hp=a260fa4dacb0a0af661c5edcc76db034ca5fd964;hpb=bbe0f0645ca958d33a3f409b15166609733b663f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/video-schedule-update.ts b/server/tests/api/videos/video-schedule-update.ts index a260fa4da..204f43611 100644 --- a/server/tests/api/videos/video-schedule-update.ts +++ b/server/tests/api/videos/video-schedule-update.ts @@ -1,23 +1,22 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import * as chai from 'chai' import 'mocha' import { VideoPrivacy } from '../../../../shared/models/videos' import { + cleanupTests, doubleFollow, flushAndRunMultipleServers, getMyVideos, getVideosList, getVideoWithToken, - killallServers, ServerInfo, setAccessTokensToServers, updateVideo, uploadVideo, wait -} from '../../utils' -import { join } from 'path' -import { waitJobs } from '../../utils/server/jobs' +} from '../../../../shared/extra-utils' +import { waitJobs } from '../../../../shared/extra-utils/server/jobs' const expect = chai.expect @@ -85,7 +84,7 @@ describe('Test video update scheduler', function () { }) it('Should wait some seconds and have the video in public privacy', async function () { - this.timeout(20000) + this.timeout(50000) await wait(15000) await waitJobs(servers) @@ -167,6 +166,6 @@ describe('Test video update scheduler', function () { }) after(async function () { - killallServers(servers) + await cleanupTests(servers) }) })