From 7c3b79768bd174b22154e8d2df0b1211e01ee56a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Apr 2019 15:10:37 +0200 Subject: Use test wrapper exit function --- server/tests/api/search/search-videos.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'server/tests/api/search/search-videos.ts') diff --git a/server/tests/api/search/search-videos.ts b/server/tests/api/search/search-videos.ts index d1520a9aa..1a086b33a 100644 --- a/server/tests/api/search/search-videos.ts +++ b/server/tests/api/search/search-videos.ts @@ -12,7 +12,8 @@ import { setAccessTokensToServers, uploadVideo, wait, - immutableAssign + immutableAssign, + cleanupTests } from '../../../../shared/extra-utils' const expect = chai.expect @@ -405,7 +406,7 @@ describe('Test a videos search', function () { } }) - after(function () { - killallServers([ server ]) + after(async function () { + await cleanupTests([ server ]) }) }) -- cgit v1.2.3