X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Fproxy.ts;h=4bf89410eb831f9280bfcb8a0c06428df73ae44a;hb=7b97127e8ba718d673b8a43afa964d136723e6a2;hp=71c444efd6a052ea1d3db3cc37fcbef11c500357;hpb=2f061e065ab43cc0b73595b619639a92952aeeba;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/proxy.ts b/server/tests/api/server/proxy.ts index 71c444efd..4bf89410e 100644 --- a/server/tests/api/server/proxy.ts +++ b/server/tests/api/server/proxy.ts @@ -20,7 +20,7 @@ describe('Test proxy', function () { let proxy: MockProxy const goodEnv = { HTTP_PROXY: '' } - const badEnv = { HTTP_PROXY: 'http://localhost:9000' } + const badEnv = { HTTP_PROXY: 'http://127.0.0.1:9000' } before(async function () { this.timeout(120000) @@ -30,7 +30,7 @@ describe('Test proxy', function () { const proxyPort = await proxy.initialize() servers = await createMultipleServers(2) - goodEnv.HTTP_PROXY = 'http://localhost:' + proxyPort + goodEnv.HTTP_PROXY = 'http://127.0.0.1:' + proxyPort await setAccessTokensToServers(servers) await setDefaultVideoChannel(servers) @@ -95,7 +95,7 @@ describe('Test proxy', function () { } it('Should succeed import with the appropriate proxy config', async function () { - this.timeout(120000) + this.timeout(240000) await servers[0].kill() await servers[0].run({}, { env: goodEnv })