diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-09-08 19:15:36 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-09-08 19:15:36 +0200 |
commit | 0cb11df7f5b6ae78e6694f160bdce0da4f0376db (patch) | |
tree | 33a172862361084d76259c639b985977136f80cc /server/tests/api/request-schedulers.ts | |
parent | 096641566f2663076c3b0d5a1947ecb7efb29fc0 (diff) | |
download | PeerTube-0cb11df7f5b6ae78e6694f160bdce0da4f0376db.tar.gz PeerTube-0cb11df7f5b6ae78e6694f160bdce0da4f0376db.tar.zst PeerTube-0cb11df7f5b6ae78e6694f160bdce0da4f0376db.zip |
Fix request schedulers test
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() |