aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-11 16:33:30 +0200
committerChocobozzz <me@florianbigard.com>2023-05-11 16:33:30 +0200
commit5752683ea518abfeaeb33adead3cb5541616e835 (patch)
treee22a51f42e6f526fa0c86748bc393c3bb8ed673b
parent85c20aaeb90ef0e0f44c377e62c323fde275cdde (diff)
downloadPeerTube-5752683ea518abfeaeb33adead3cb5541616e835.tar.gz
PeerTube-5752683ea518abfeaeb33adead3cb5541616e835.tar.zst
PeerTube-5752683ea518abfeaeb33adead3cb5541616e835.zip
Increase test timeouts
-rw-r--r--server/tests/api/check-params/video-studio.ts2
-rw-r--r--server/tests/api/live/live-save-replay.ts28
-rw-r--r--server/tests/api/server/follows.ts2
-rw-r--r--server/tests/api/server/logs.ts13
4 files changed, 23 insertions, 22 deletions
diff --git a/server/tests/api/check-params/video-studio.ts b/server/tests/api/check-params/video-studio.ts
index dc533b242..add8d9164 100644
--- a/server/tests/api/check-params/video-studio.ts
+++ b/server/tests/api/check-params/video-studio.ts
@@ -121,7 +121,7 @@ describe('Test video studio API validator', function () {
121 }) 121 })
122 122
123 it('Should fail with an already in transcoding state video', async function () { 123 it('Should fail with an already in transcoding state video', async function () {
124 this.timeout(30000) 124 this.timeout(60000)
125 125
126 const { uuid } = await server.videos.quickUpload({ name: 'transcoded video' }) 126 const { uuid } = await server.videos.quickUpload({ name: 'transcoded video' })
127 await waitJobs([ server ]) 127 await waitJobs([ server ])
diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts
index 2a44cb5a0..05ffe8af9 100644
--- a/server/tests/api/live/live-save-replay.ts
+++ b/server/tests/api/live/live-save-replay.ts
@@ -164,7 +164,7 @@ describe('Save replay setting', function () {
164 }) 164 })
165 165
166 it('Should correctly have updated the live and federated it when streaming in the live', async function () { 166 it('Should correctly have updated the live and federated it when streaming in the live', async function () {
167 this.timeout(40000) 167 this.timeout(60000)
168 168
169 ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID }) 169 ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
170 170
@@ -179,7 +179,7 @@ describe('Save replay setting', function () {
179 }) 179 })
180 180
181 it('Should correctly delete the video files after the stream ended', async function () { 181 it('Should correctly delete the video files after the stream ended', async function () {
182 this.timeout(40000) 182 this.timeout(60000)
183 183
184 sessionEndDateMin = new Date() 184 sessionEndDateMin = new Date()
185 await stopFfmpeg(ffmpegCommand) 185 await stopFfmpeg(ffmpegCommand)
@@ -241,7 +241,7 @@ describe('Save replay setting', function () {
241 }) 241 })
242 242
243 it('Should correctly terminate the stream on delete and delete the video', async function () { 243 it('Should correctly terminate the stream on delete and delete the video', async function () {
244 this.timeout(40000) 244 this.timeout(60000)
245 245
246 await publishLiveAndDelete({ permanent: false, replay: false }) 246 await publishLiveAndDelete({ permanent: false, replay: false })
247 247
@@ -253,7 +253,7 @@ describe('Save replay setting', function () {
253 describe('With save replay enabled on non permanent live', function () { 253 describe('With save replay enabled on non permanent live', function () {
254 254
255 it('Should correctly create and federate the "waiting for stream" live', async function () { 255 it('Should correctly create and federate the "waiting for stream" live', async function () {
256 this.timeout(40000) 256 this.timeout(60000)
257 257
258 liveVideoUUID = await createLiveWrapper({ permanent: false, replay: true, replaySettings: { privacy: VideoPrivacy.UNLISTED } }) 258 liveVideoUUID = await createLiveWrapper({ permanent: false, replay: true, replaySettings: { privacy: VideoPrivacy.UNLISTED } })
259 259
@@ -265,7 +265,7 @@ describe('Save replay setting', function () {
265 }) 265 })
266 266
267 it('Should correctly have updated the live and federated it when streaming in the live', async function () { 267 it('Should correctly have updated the live and federated it when streaming in the live', async function () {
268 this.timeout(40000) 268 this.timeout(60000)
269 269
270 ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID }) 270 ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
271 await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID) 271 await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID)
@@ -278,7 +278,7 @@ describe('Save replay setting', function () {
278 }) 278 })
279 279
280 it('Should correctly have saved the live and federated it after the streaming', async function () { 280 it('Should correctly have saved the live and federated it after the streaming', async function () {
281 this.timeout(40000) 281 this.timeout(60000)
282 282
283 const session = await servers[0].live.findLatestSession({ videoId: liveVideoUUID }) 283 const session = await servers[0].live.findLatestSession({ videoId: liveVideoUUID })
284 expect(session.endDate).to.not.exist 284 expect(session.endDate).to.not.exist
@@ -319,7 +319,7 @@ describe('Save replay setting', function () {
319 }) 319 })
320 320
321 it('Should update the saved live and correctly federate the updated attributes', async function () { 321 it('Should update the saved live and correctly federate the updated attributes', async function () {
322 this.timeout(40000) 322 this.timeout(60000)
323 323
324 await servers[0].videos.update({ id: liveVideoUUID, attributes: { name: 'video updated', privacy: VideoPrivacy.PUBLIC } }) 324 await servers[0].videos.update({ id: liveVideoUUID, attributes: { name: 'video updated', privacy: VideoPrivacy.PUBLIC } })
325 await waitJobs(servers) 325 await waitJobs(servers)
@@ -352,7 +352,7 @@ describe('Save replay setting', function () {
352 }) 352 })
353 353
354 it('Should correctly terminate the stream on delete and delete the video', async function () { 354 it('Should correctly terminate the stream on delete and delete the video', async function () {
355 this.timeout(40000) 355 this.timeout(60000)
356 356
357 await publishLiveAndDelete({ permanent: false, replay: true, replaySettings: { privacy: VideoPrivacy.PUBLIC } }) 357 await publishLiveAndDelete({ permanent: false, replay: true, replaySettings: { privacy: VideoPrivacy.PUBLIC } })
358 358
@@ -367,7 +367,7 @@ describe('Save replay setting', function () {
367 describe('With a first live and its replay', function () { 367 describe('With a first live and its replay', function () {
368 368
369 it('Should correctly create and federate the "waiting for stream" live', async function () { 369 it('Should correctly create and federate the "waiting for stream" live', async function () {
370 this.timeout(40000) 370 this.timeout(60000)
371 371
372 liveVideoUUID = await createLiveWrapper({ permanent: true, replay: true, replaySettings: { privacy: VideoPrivacy.UNLISTED } }) 372 liveVideoUUID = await createLiveWrapper({ permanent: true, replay: true, replaySettings: { privacy: VideoPrivacy.UNLISTED } })
373 373
@@ -379,7 +379,7 @@ describe('Save replay setting', function () {
379 }) 379 })
380 380
381 it('Should correctly have updated the live and federated it when streaming in the live', async function () { 381 it('Should correctly have updated the live and federated it when streaming in the live', async function () {
382 this.timeout(40000) 382 this.timeout(60000)
383 383
384 ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID }) 384 ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
385 await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID) 385 await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID)
@@ -392,7 +392,7 @@ describe('Save replay setting', function () {
392 }) 392 })
393 393
394 it('Should correctly have saved the live and federated it after the streaming', async function () { 394 it('Should correctly have saved the live and federated it after the streaming', async function () {
395 this.timeout(40000) 395 this.timeout(60000)
396 396
397 const liveDetails = await servers[0].videos.get({ id: liveVideoUUID }) 397 const liveDetails = await servers[0].videos.get({ id: liveVideoUUID })
398 398
@@ -457,7 +457,7 @@ describe('Save replay setting', function () {
457 }) 457 })
458 458
459 it('Should correctly have updated the live and federated it when streaming in the live', async function () { 459 it('Should correctly have updated the live and federated it when streaming in the live', async function () {
460 this.timeout(40000) 460 this.timeout(60000)
461 461
462 ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID }) 462 ffmpegCommand = await servers[0].live.sendRTMPStreamInVideo({ videoId: liveVideoUUID })
463 await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID) 463 await waitUntilLivePublishedOnAllServers(servers, liveVideoUUID)
@@ -470,7 +470,7 @@ describe('Save replay setting', function () {
470 }) 470 })
471 471
472 it('Should correctly have saved the live and federated it after the streaming', async function () { 472 it('Should correctly have saved the live and federated it after the streaming', async function () {
473 this.timeout(40000) 473 this.timeout(60000)
474 474
475 const liveDetails = await servers[0].videos.get({ id: liveVideoUUID }) 475 const liveDetails = await servers[0].videos.get({ id: liveVideoUUID })
476 476
@@ -547,7 +547,7 @@ describe('Save replay setting', function () {
547 }) 547 })
548 548
549 it('Should correctly terminate the stream on delete and not save the video', async function () { 549 it('Should correctly terminate the stream on delete and not save the video', async function () {
550 this.timeout(40000) 550 this.timeout(60000)
551 551
552 const { liveDetails } = await publishLiveAndDelete({ 552 const { liveDetails } = await publishLiveAndDelete({
553 permanent: true, 553 permanent: true,
diff --git a/server/tests/api/server/follows.ts b/server/tests/api/server/follows.ts
index ecec95bf8..dba9e107c 100644
--- a/server/tests/api/server/follows.ts
+++ b/server/tests/api/server/follows.ts
@@ -360,7 +360,7 @@ describe('Test follows', function () {
360 let video4: Video 360 let video4: Video
361 361
362 before(async function () { 362 before(async function () {
363 this.timeout(50000) 363 this.timeout(120000)
364 364
365 const video4Attributes = { 365 const video4Attributes = {
366 name: 'server3-4', 366 name: 'server3-4',
diff --git a/server/tests/api/server/logs.ts b/server/tests/api/server/logs.ts
index 3b3314d34..a662992e0 100644
--- a/server/tests/api/server/logs.ts
+++ b/server/tests/api/server/logs.ts
@@ -28,7 +28,7 @@ describe('Test logs', function () {
28 describe('With the standard log file', function () { 28 describe('With the standard log file', function () {
29 29
30 it('Should get logs with a start date', async function () { 30 it('Should get logs with a start date', async function () {
31 this.timeout(20000) 31 this.timeout(60000)
32 32
33 await server.videos.upload({ attributes: { name: 'video 1' } }) 33 await server.videos.upload({ attributes: { name: 'video 1' } })
34 await waitJobs([ server ]) 34 await waitJobs([ server ])
@@ -46,7 +46,7 @@ describe('Test logs', function () {
46 }) 46 })
47 47
48 it('Should get logs with an end date', async function () { 48 it('Should get logs with an end date', async function () {
49 this.timeout(30000) 49 this.timeout(60000)
50 50
51 await server.videos.upload({ attributes: { name: 'video 3' } }) 51 await server.videos.upload({ attributes: { name: 'video 3' } })
52 await waitJobs([ server ]) 52 await waitJobs([ server ])
@@ -70,7 +70,7 @@ describe('Test logs', function () {
70 }) 70 })
71 71
72 it('Should filter by level', async function () { 72 it('Should filter by level', async function () {
73 this.timeout(20000) 73 this.timeout(60000)
74 74
75 const now = new Date() 75 const now = new Date()
76 76
@@ -127,7 +127,7 @@ describe('Test logs', function () {
127 }) 127 })
128 128
129 it('Should not log ping requests', async function () { 129 it('Should not log ping requests', async function () {
130 this.timeout(30000) 130 this.timeout(60000)
131 131
132 await killallServers([ server ]) 132 await killallServers([ server ])
133 133
@@ -145,8 +145,9 @@ describe('Test logs', function () {
145 }) 145 })
146 146
147 describe('With the audit log', function () { 147 describe('With the audit log', function () {
148
148 it('Should get logs with a start date', async function () { 149 it('Should get logs with a start date', async function () {
149 this.timeout(20000) 150 this.timeout(60000)
150 151
151 await server.videos.upload({ attributes: { name: 'video 7' } }) 152 await server.videos.upload({ attributes: { name: 'video 7' } })
152 await waitJobs([ server ]) 153 await waitJobs([ server ])
@@ -172,7 +173,7 @@ describe('Test logs', function () {
172 }) 173 })
173 174
174 it('Should get logs with an end date', async function () { 175 it('Should get logs with an end date', async function () {
175 this.timeout(30000) 176 this.timeout(60000)
176 177
177 await server.videos.upload({ attributes: { name: 'video 9' } }) 178 await server.videos.upload({ attributes: { name: 'video 9' } })
178 await waitJobs([ server ]) 179 await waitJobs([ server ])