From 0cb11df7f5b6ae78e6694f160bdce0da4f0376db Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Sep 2017 19:15:36 +0200 Subject: Fix request schedulers test --- server/tests/api/request-schedulers.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/tests/api') diff --git a/server/tests/api/request-schedulers.ts b/server/tests/api/request-schedulers.ts index 326ed3468..2e91e7c61 100644 --- a/server/tests/api/request-schedulers.ts +++ b/server/tests/api/request-schedulers.ts @@ -1,6 +1,5 @@ /* tslint:disable:no-unused-expression */ -import * as request from 'supertest' import 'mocha' import * as chai from 'chai' const expect = chai.expect @@ -19,7 +18,6 @@ import { describe('Test requests schedulers stats', function () { const requestSchedulerNames = [ 'requestScheduler', 'requestVideoQaduScheduler', 'requestVideoEventScheduler' ] - const path = '/api/v1/request-schedulers/stats' let servers: ServerInfo[] = [] function uploadVideoWrapper (server: ServerInfo) { @@ -74,7 +72,8 @@ describe('Test requests schedulers stats', function () { }) after(async function () { - killallServers(servers) + // Server 1 has already been killed + killallServers([ servers[0] ]) if (this['ok']) { await flushTests() -- cgit v1.2.3