X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fvideos%2Fvideo-privacy.ts;h=ef1cf0f071ed23f7544f32013aecc1c2d27ddf71;hb=bec4ea343987c69252b84d02f444c0f033d4a3f9;hp=a823993b2d67761b0a17af5af591c3ae26bcd8f8;hpb=210feb6cc484a6c5c63c98f770de34e223f944cb;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/videos/video-privacy.ts b/server/tests/api/videos/video-privacy.ts index a823993b2..ef1cf0f07 100644 --- a/server/tests/api/videos/video-privacy.ts +++ b/server/tests/api/videos/video-privacy.ts @@ -4,6 +4,7 @@ import * as chai from 'chai' import 'mocha' import { VideoPrivacy } from '../../../../shared/models/videos/video-privacy.enum' import { + cleanupTests, flushAndRunMultipleServers, getVideosList, killallServers, @@ -152,7 +153,7 @@ describe('Test video privacy', function () { } }) - after(function () { - killallServers(servers) + after(async function () { + await cleanupTests(servers) }) })