X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fplugins%2Fplugin-helpers.ts;h=c0d95e1e0cad3f251d8dae877e8376e79cfce66a;hb=2805cb7cb68cae0f25bd43f166e4a6b8501d41eb;hp=0915603d046b77eb3ae44cede41635502cdf555f;hpb=610d0be13b3d01f653ef269271dd667a57c85ef2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/plugins/plugin-helpers.ts b/server/tests/plugins/plugin-helpers.ts index 0915603d0..c0d95e1e0 100644 --- a/server/tests/plugins/plugin-helpers.ts +++ b/server/tests/plugins/plugin-helpers.ts @@ -16,6 +16,7 @@ import { } 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 } @@ -25,7 +26,7 @@ function postCommand (server: ServerInfo, command: string, bodyArg?: object) { url: server.url, path: '/plugins/test-four/router/commander', fields: body, - statusCodeExpected: 204 + statusCodeExpected: HttpStatusCode.NO_CONTENT_204 }) } @@ -80,7 +81,7 @@ describe('Test plugin helpers', function () { let videoUUIDServer1: string before(async function () { - this.timeout(15000) + this.timeout(30000) { const res = await uploadVideoAndGetId({ server: servers[0], videoName: 'video server 1' })