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/client.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'server/tests/client.ts') diff --git a/server/tests/client.ts b/server/tests/client.ts index 2adb39c5e..687655452 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts @@ -11,7 +11,7 @@ import { runServer, serverLogin, uploadVideo, - getVideosList, updateCustomConfig, getCustomConfig + getVideosList, updateCustomConfig, getCustomConfig, killallServers } from './utils' describe('Test a client controllers', function () { @@ -102,11 +102,6 @@ describe('Test a client controllers', function () { }) after(async function () { - process.kill(-server.app.pid) - - // Keep the logs if the test failed - if (this['ok']) { - await flushTests() - } + killallServers([ server ]) }) }) -- cgit v1.2.3