]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix benchmark test
authorChocobozzz <me@florianbigard.com>
Thu, 14 Oct 2021 06:30:17 +0000 (08:30 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 14 Oct 2021 06:30:17 +0000 (08:30 +0200)
scripts/benchmark.ts
server/tests/api/server/handle-down.ts
server/tests/api/users/user-subscriptions.ts

index c29b9abcdb6c9e20f4eb841dbd9234032ae419cb..007e3c33b735b594fab4db07f5c762a7aa86c946 100644 (file)
@@ -135,7 +135,7 @@ async function run () {
       title: 'API - config',
       path: '/api/v1/config',
       expecter: (body, status) => {
-        return status === 200 && body.startsWith('{"instance":')
+        return status === 200 && body.startsWith('{"allowEdits":')
       }
     }
   ]
index b3255a72135e692f8bc8753ba87e084ea2a566bb..fa1da8fe085d974d66b462f030cf335c4db2e3f9 100644 (file)
@@ -172,7 +172,7 @@ describe('Test handle downs', function () {
   })
 
   it('Should re-follow server 1', async function () {
-    this.timeout(35000)
+    this.timeout(70000)
 
     await servers[1].run()
     await servers[2].run()
index 77b99886d24208a976d63f782ae25c2edd564ea6..441f70d075ab3885f61d59232a802907517616da 100644 (file)
@@ -22,7 +22,7 @@ describe('Test users subscriptions', function () {
   let command: SubscriptionsCommand
 
   before(async function () {
-    this.timeout(120000)
+    this.timeout(240000)
 
     servers = await createMultipleServers(3)