]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Increase test timeouts
authorChocobozzz <me@florianbigard.com>
Thu, 11 May 2023 14:33:30 +0000 (16:33 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 11 May 2023 14:33:30 +0000 (16:33 +0200)
server/tests/api/check-params/video-studio.ts
server/tests/api/live/live-save-replay.ts
server/tests/api/server/follows.ts
server/tests/api/server/logs.ts

index dc533b242d30862dfcff3b5f3bcacc80be907090..add8d916478f5c05a3323509440835d0e29f5676 100644 (file)
@@ -121,7 +121,7 @@ describe('Test video studio API validator', function () {
       })
 
       it('Should fail with an already in transcoding state video', async function () {
-        this.timeout(30000)
+        this.timeout(60000)
 
         const { uuid } = await server.videos.quickUpload({ name: 'transcoded video' })
         await waitJobs([ server ])
index 2a44cb5a0b74ccdec6843f3052d77af30be568ca..05ffe8af9e59ff974cc7f3dfff845c098e66638c 100644 (file)
@@ -164,7 +164,7 @@ describe('Save replay setting', function () {
     })
 
     it('Should correctly have updated the live and federated it when streaming in the live', async function () {
-      this.timeout(40000)
+      this.timeout(60000)
 
       ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
 
@@ -179,7 +179,7 @@ describe('Save replay setting', function () {
     })
 
     it('Should correctly delete the video files after the stream ended', async function () {
-      this.timeout(40000)
+      this.timeout(60000)
 
       sessionEndDateMin = new Date()
       await stopFfmpeg(ffmpegCommand)
@@ -241,7 +241,7 @@ describe('Save replay setting', function () {
     })
 
     it('Should correctly terminate the stream on delete and delete the video', async function () {
-      this.timeout(40000)
+      this.timeout(60000)
 
       await publishLiveAndDelete({ permanent: false, replay: false })
 
@@ -253,7 +253,7 @@ describe('Save replay setting', function () {
   describe('With save replay enabled on non permanent live', function () {
 
     it('Should correctly create and federate the "waiting for stream" live', async function () {
-      this.timeout(40000)
+      this.timeout(60000)
 
       liveVideoUUID = await createLiveWrapper({ permanent: false, replay: true, replaySettings: { privacy: VideoPrivacy.UNLISTED } })
 
@@ -265,7 +265,7 @@ describe('Save replay setting', function () {
     })
 
     it('Should correctly have updated the live and federated it when streaming in the live', async function () {
-      this.timeout(40000)
+      this.timeout(60000)
 
       ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
       await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID)
@@ -278,7 +278,7 @@ describe('Save replay setting', function () {
     })
 
     it('Should correctly have saved the live and federated it after the streaming', async function () {
-      this.timeout(40000)
+      this.timeout(60000)
 
       const session = await servers[0].live.findLatestSession({ videoId: liveVideoUUID })
       expect(session.endDate).to.not.exist
@@ -319,7 +319,7 @@ describe('Save replay setting', function () {
     })
 
     it('Should update the saved live and correctly federate the updated attributes', async function () {
-      this.timeout(40000)
+      this.timeout(60000)
 
       await servers[0].videos.update({ id: liveVideoUUID, attributes: { name: 'video updated', privacy: VideoPrivacy.PUBLIC } })
       await waitJobs(servers)
@@ -352,7 +352,7 @@ describe('Save replay setting', function () {
     })
 
     it('Should correctly terminate the stream on delete and delete the video', async function () {
-      this.timeout(40000)
+      this.timeout(60000)
 
       await publishLiveAndDelete({ permanent: false, replay: true, replaySettings: { privacy: VideoPrivacy.PUBLIC } })
 
@@ -367,7 +367,7 @@ describe('Save replay setting', function () {
     describe('With a first live and its replay', function () {
 
       it('Should correctly create and federate the "waiting for stream" live', async function () {
-        this.timeout(40000)
+        this.timeout(60000)
 
         liveVideoUUID = await createLiveWrapper({ permanent: true, replay: true, replaySettings: { privacy: VideoPrivacy.UNLISTED } })
 
@@ -379,7 +379,7 @@ describe('Save replay setting', function () {
       })
 
       it('Should correctly have updated the live and federated it when streaming in the live', async function () {
-        this.timeout(40000)
+        this.timeout(60000)
 
         ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
         await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID)
@@ -392,7 +392,7 @@ describe('Save replay setting', function () {
       })
 
       it('Should correctly have saved the live and federated it after the streaming', async function () {
-        this.timeout(40000)
+        this.timeout(60000)
 
         const liveDetails = await servers[0].videos.get({ id: liveVideoUUID })
 
@@ -457,7 +457,7 @@ describe('Save replay setting', function () {
       })
 
       it('Should correctly have updated the live and federated it when streaming in the live', async function () {
-        this.timeout(40000)
+        this.timeout(60000)
 
         ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
         await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID)
@@ -470,7 +470,7 @@ describe('Save replay setting', function () {
       })
 
       it('Should correctly have saved the live and federated it after the streaming', async function () {
-        this.timeout(40000)
+        this.timeout(60000)
 
         const liveDetails = await servers[0].videos.get({ id: liveVideoUUID })
 
@@ -547,7 +547,7 @@ describe('Save replay setting', function () {
       })
 
       it('Should correctly terminate the stream on delete and not save the video', async function () {
-        this.timeout(40000)
+        this.timeout(60000)
 
         const { liveDetails } = await publishLiveAndDelete({
           permanent: true,
index ecec95bf85925199189ff83f36da2b7ac61b5713..dba9e107c3c227878c38785232fedd70e24063b2 100644 (file)
@@ -360,7 +360,7 @@ describe('Test follows', function () {
     let video4: Video
 
     before(async function () {
-      this.timeout(50000)
+      this.timeout(120000)
 
       const video4Attributes = {
         name: 'server3-4',
index 3b3314d3492c97ba1ab2968bad2c19931486b634..a662992e01010bb52b27a6bb871ba98eda9466c9 100644 (file)
@@ -28,7 +28,7 @@ describe('Test logs', function () {
   describe('With the standard log file', function () {
 
     it('Should get logs with a start date', async function () {
-      this.timeout(20000)
+      this.timeout(60000)
 
       await server.videos.upload({ attributes: { name: 'video 1' } })
       await waitJobs([ server ])
@@ -46,7 +46,7 @@ describe('Test logs', function () {
     })
 
     it('Should get logs with an end date', async function () {
-      this.timeout(30000)
+      this.timeout(60000)
 
       await server.videos.upload({ attributes: { name: 'video 3' } })
       await waitJobs([ server ])
@@ -70,7 +70,7 @@ describe('Test logs', function () {
     })
 
     it('Should filter by level', async function () {
-      this.timeout(20000)
+      this.timeout(60000)
 
       const now = new Date()
 
@@ -127,7 +127,7 @@ describe('Test logs', function () {
     })
 
     it('Should not log ping requests', async function () {
-      this.timeout(30000)
+      this.timeout(60000)
 
       await killallServers([ server ])
 
@@ -145,8 +145,9 @@ describe('Test logs', function () {
   })
 
   describe('With the audit log', function () {
+
     it('Should get logs with a start date', async function () {
-      this.timeout(20000)
+      this.timeout(60000)
 
       await server.videos.upload({ attributes: { name: 'video 7' } })
       await waitJobs([ server ])
@@ -172,7 +173,7 @@ describe('Test logs', function () {
     })
 
     it('Should get logs with an end date', async function () {
-      this.timeout(30000)
+      this.timeout(60000)
 
       await server.videos.upload({ attributes: { name: 'video 9' } })
       await waitJobs([ server ])