diff options
Diffstat (limited to 'server/tests/api/request-schedulers.ts')
-rw-r--r-- | server/tests/api/request-schedulers.ts | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ | |||
1 | /* tslint:disable:no-unused-expression */ | 1 | /* tslint:disable:no-unused-expression */ |
2 | 2 | ||
3 | import * as request from 'supertest' | ||
4 | import 'mocha' | 3 | import 'mocha' |
5 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
6 | const expect = chai.expect | 5 | const expect = chai.expect |
@@ -19,7 +18,6 @@ import { | |||
19 | 18 | ||
20 | describe('Test requests schedulers stats', function () { | 19 | describe('Test requests schedulers stats', function () { |
21 | const requestSchedulerNames = [ 'requestScheduler', 'requestVideoQaduScheduler', 'requestVideoEventScheduler' ] | 20 | const requestSchedulerNames = [ 'requestScheduler', 'requestVideoQaduScheduler', 'requestVideoEventScheduler' ] |
22 | const path = '/api/v1/request-schedulers/stats' | ||
23 | let servers: ServerInfo[] = [] | 21 | let servers: ServerInfo[] = [] |
24 | 22 | ||
25 | function uploadVideoWrapper (server: ServerInfo) { | 23 | function uploadVideoWrapper (server: ServerInfo) { |
@@ -74,7 +72,8 @@ describe('Test requests schedulers stats', function () { | |||
74 | }) | 72 | }) |
75 | 73 | ||
76 | after(async function () { | 74 | after(async function () { |
77 | killallServers(servers) | 75 | // Server 1 has already been killed |
76 | killallServers([ servers[0] ]) | ||
78 | 77 | ||
79 | if (this['ok']) { | 78 | if (this['ok']) { |
80 | await flushTests() | 79 | await flushTests() |