From 2fa9c40e20ce386c9cdedd219f0753e14bda332a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 27 Nov 2019 10:13:31 +0100 Subject: Fix tests --- server/tests/api/server/reverse-proxy.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'server/tests/api') diff --git a/server/tests/api/server/reverse-proxy.ts b/server/tests/api/server/reverse-proxy.ts index 39b9fecc0..b6b33a884 100644 --- a/server/tests/api/server/reverse-proxy.ts +++ b/server/tests/api/server/reverse-proxy.ts @@ -103,8 +103,12 @@ describe('Test application behind a reverse proxy', function () { }) it('Should rate limit signup', async function () { - for (let i = 0; i < 3; i++) { - await registerUser(server.url, 'test' + i, 'password') + for (let i = 0; i < 10; i++) { + try { + await registerUser(server.url, 'test' + i, 'password') + } catch { + // empty + } } await registerUser(server.url, 'test42', 'password', 429) -- cgit v1.2.3