mirror of https://github.com/Chocobozzz/PeerTube
Fix request schedulers test
parent
096641566f
commit
0cb11df7f5
|
@ -1,6 +1,5 @@
|
||||||
/* tslint:disable:no-unused-expression */
|
/* tslint:disable:no-unused-expression */
|
||||||
|
|
||||||
import * as request from 'supertest'
|
|
||||||
import 'mocha'
|
import 'mocha'
|
||||||
import * as chai from 'chai'
|
import * as chai from 'chai'
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
@ -19,7 +18,6 @@ import {
|
||||||
|
|
||||||
describe('Test requests schedulers stats', function () {
|
describe('Test requests schedulers stats', function () {
|
||||||
const requestSchedulerNames = [ 'requestScheduler', 'requestVideoQaduScheduler', 'requestVideoEventScheduler' ]
|
const requestSchedulerNames = [ 'requestScheduler', 'requestVideoQaduScheduler', 'requestVideoEventScheduler' ]
|
||||||
const path = '/api/v1/request-schedulers/stats'
|
|
||||||
let servers: ServerInfo[] = []
|
let servers: ServerInfo[] = []
|
||||||
|
|
||||||
function uploadVideoWrapper (server: ServerInfo) {
|
function uploadVideoWrapper (server: ServerInfo) {
|
||||||
|
@ -74,7 +72,8 @@ describe('Test requests schedulers stats', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
after(async function () {
|
after(async function () {
|
||||||
killallServers(servers)
|
// Server 1 has already been killed
|
||||||
|
killallServers([ servers[0] ])
|
||||||
|
|
||||||
if (this['ok']) {
|
if (this['ok']) {
|
||||||
await flushTests()
|
await flushTests()
|
||||||
|
|
Loading…
Reference in New Issue