X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Freverse-proxy.ts;h=908b4a68cbd3a9cf0d71115ef72f74f22d97da80;hb=8a19bee1a1ee39f973bb37429e4f73c3f2873cdb;hp=aa4b3ae81933b0c6d787a0fdd25c7249bf29a125;hpb=490b595a01c5824ff63ffb87f0efdfca95f4bf3b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/reverse-proxy.ts b/server/tests/api/server/reverse-proxy.ts index aa4b3ae81..908b4a68c 100644 --- a/server/tests/api/server/reverse-proxy.ts +++ b/server/tests/api/server/reverse-proxy.ts @@ -64,7 +64,7 @@ describe('Test application behind a reverse proxy', function () { it('Should rate limit logins', async function () { const user = { username: 'root', password: 'fail' } - for (let i = 0; i < 9; i++) { + for (let i = 0; i < 14; i++) { await userLogin(server, user, 400) } @@ -72,11 +72,6 @@ describe('Test application behind a reverse proxy', function () { }) after(async function () { - process.kill(-server.app.pid) - - // Keep the logs if the test failed - if (this['ok']) { - await flushTests() - } + killallServers([ server ]) }) })