diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-27 10:13:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-27 10:29:27 +0100 |
commit | 2fa9c40e20ce386c9cdedd219f0753e14bda332a (patch) | |
tree | 0d21e3509fdba6134311e9b625ac6fdbb95e7447 /server/tests/api | |
parent | a18bb55e9b72664dff4043785842d6d406dd15a3 (diff) | |
download | PeerTube-2fa9c40e20ce386c9cdedd219f0753e14bda332a.tar.gz PeerTube-2fa9c40e20ce386c9cdedd219f0753e14bda332a.tar.zst PeerTube-2fa9c40e20ce386c9cdedd219f0753e14bda332a.zip |
Fix tests
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/server/reverse-proxy.ts | 8 |
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) |