X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-schedule-update.ts;h=204f436116199b2295cba3d79d60aa15dff14174;hb=819b656439e5f0ec2ae5de9357502cdfe3196197;hp=d7301a1377ed88bb8cf910d1df60d43faba8b3bf;hpb=210feb6cc484a6c5c63c98f770de34e223f944cb;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 d7301a137..204f43611 100644 --- a/server/tests/api/videos/video-schedule-update.ts +++ b/server/tests/api/videos/video-schedule-update.ts @@ -1,15 +1,15 @@ -/* 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, @@ -84,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) @@ -165,7 +165,7 @@ describe('Test video update scheduler', function () { } }) - after(function () { - killallServers(servers) + after(async function () { + await cleanupTests(servers) }) })