]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Increase test timers
authorChocobozzz <florian.bigard@gmail.com>
Fri, 24 Nov 2017 13:39:14 +0000 (14:39 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Mon, 27 Nov 2017 18:40:53 +0000 (19:40 +0100)
server/tests/api/config.ts
server/tests/api/multiple-servers.ts

index 72a9e5679f310e15100df1d43f8e2bd206c19d29..61ae579777e19b185db2636700462952678724de 100644 (file)
@@ -29,6 +29,8 @@ describe('Test config', function () {
   })
 
   it('Should have a correct config on a server with registration enabled and a users limit', async function () {
+    this.timeout(5000)
+
     await Promise.all([
       registerUser(server.url, 'user1', 'super password'),
       registerUser(server.url, 'user2', 'super password'),
index 601e5f39a10b80e9613f68bc8dd401a1a375ec82..7d06e55d1c9f4db0c44d0e39b09fb6abab7f893e 100644 (file)
@@ -69,8 +69,7 @@ describe('Test multiple servers', function () {
 
   describe('Should upload the video and propagate on each server', function () {
     it('Should upload the video on server 1 and propagate on each server', async function () {
-      // Server 1 has video transcoding activated
-      this.timeout(15000)
+      this.timeout(25000)
 
       const videoAttributes = {
         name: 'my super name for server 1',
@@ -85,7 +84,7 @@ describe('Test multiple servers', function () {
       }
       await uploadVideo(servers[0].url, servers[0].accessToken, videoAttributes)
 
-      await wait(5000)
+      await wait(10000)
 
       // All servers should have this video
       for (const server of servers) {