aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-08 19:15:36 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-08 19:15:36 +0200
commit0cb11df7f5b6ae78e6694f160bdce0da4f0376db (patch)
tree33a172862361084d76259c639b985977136f80cc /server/tests/api
parent096641566f2663076c3b0d5a1947ecb7efb29fc0 (diff)
downloadPeerTube-0cb11df7f5b6ae78e6694f160bdce0da4f0376db.tar.gz
PeerTube-0cb11df7f5b6ae78e6694f160bdce0da4f0376db.tar.zst
PeerTube-0cb11df7f5b6ae78e6694f160bdce0da4f0376db.zip
Fix request schedulers test
Diffstat (limited to 'server/tests/api')
-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()