aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/server/reverse-proxy.ts8
1 files changed, 6 insertions, 2 deletions
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 () {
103 }) 103 })
104 104
105 it('Should rate limit signup', async function () { 105 it('Should rate limit signup', async function () {
106 for (let i = 0; i < 3; i++) { 106 for (let i = 0; i < 10; i++) {
107 await registerUser(server.url, 'test' + i, 'password') 107 try {
108 await registerUser(server.url, 'test' + i, 'password')
109 } catch {
110 // empty
111 }
108 } 112 }
109 113
110 await registerUser(server.url, 'test42', 'password', 429) 114 await registerUser(server.url, 'test42', 'password', 429)