} from '../../../shared/extra-utils'
import { cleanupTests, flushAndRunMultipleServers, ServerInfo, waitUntilLog } from '../../../shared/extra-utils/server/servers'
import { expect } from 'chai'
+import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
function postCommand (server: ServerInfo, command: string, bodyArg?: object) {
const body = { command }
url: server.url,
path: '/plugins/test-four/router/commander',
fields: body,
- statusCodeExpected: 204
+ statusCodeExpected: HttpStatusCode.NO_CONTENT_204
})
}
let videoUUIDServer1: string
before(async function () {
- this.timeout(15000)
+ this.timeout(30000)
{
const res = await uploadVideoAndGetId({ server: servers[0], videoName: 'video server 1' })