]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/server/reverse-proxy.ts
Add ability to set a name to a channel
[github/Chocobozzz/PeerTube.git] / server / tests / api / server / reverse-proxy.ts
index aa4b3ae81933b0c6d787a0fdd25c7249bf29a125..908b4a68cbd3a9cf0d71115ef72f74f22d97da80 100644 (file)
@@ -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 ])
   })
 })