aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/tests/api/request-schedulers.ts5
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
3import * as request from 'supertest'
4import 'mocha' 3import 'mocha'
5import * as chai from 'chai' 4import * as chai from 'chai'
6const expect = chai.expect 5const expect = chai.expect
@@ -19,7 +18,6 @@ import {
19 18
20describe('Test requests schedulers stats', function () { 19describe('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()