aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-30 09:16:41 +0100
committerChocobozzz <me@florianbigard.com>2020-11-30 09:16:41 +0100
commit0484ec9e41acd61d87b6fe132f3530b6e3963e11 (patch)
tree45be247de0c9c20dd8aeee4546d230aecc47876b
parent6b88559babc1e0490119a6b52411b10910d9da9d (diff)
downloadPeerTube-0484ec9e41acd61d87b6fe132f3530b6e3963e11.tar.gz
PeerTube-0484ec9e41acd61d87b6fe132f3530b6e3963e11.tar.zst
PeerTube-0484ec9e41acd61d87b6fe132f3530b6e3963e11.zip
Try to fix live tests
-rw-r--r--.github/workflows/test.yml5
-rw-r--r--server/tests/api/live/live.ts11
2 files changed, 14 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 7db871149..c188c2074 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -95,6 +95,11 @@ jobs:
95 if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins' 95 if: github.event_name == 'schedule' || matrix.test_suite != 'external-plugins'
96 run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }} 96 run: NODE_PENDING_JOB_WAIT=2000 npm run ci -- ${{ matrix.test_suite }}
97 97
98 - name: Display directories state
99 if: failure()
100 run: |
101 ls -l
102
98 - name: Upload logs 103 - name: Upload logs
99 uses: actions/upload-artifact@v2 104 uses: actions/upload-artifact@v2
100 if: failure() 105 if: failure()
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.ts
index 843943bba..d0586499b 100644
--- a/server/tests/api/live/live.ts
+++ b/server/tests/api/live/live.ts
@@ -579,7 +579,11 @@ describe('Test live', function () {
579 } 579 }
580 580
581 const command = await sendRTMPStreamInVideo(servers[0].url, servers[0].accessToken, liveVideoUUID) 581 const command = await sendRTMPStreamInVideo(servers[0].url, servers[0].accessToken, liveVideoUUID)
582 await waitUntilLiveStarts(servers[0].url, servers[0].accessToken, liveVideoUUID) 582
583 for (const server of servers) {
584 await waitUntilLiveStarts(server.url, server.accessToken, liveVideoUUID)
585 }
586
583 await waitJobs(servers) 587 await waitJobs(servers)
584 588
585 for (const stateChanges of [ localStateChanges, remoteStateChanges ]) { 589 for (const stateChanges of [ localStateChanges, remoteStateChanges ]) {
@@ -588,7 +592,10 @@ describe('Test live', function () {
588 } 592 }
589 593
590 await stopFfmpeg(command) 594 await stopFfmpeg(command)
591 await waitUntilLiveEnded(servers[0].url, servers[0].accessToken, liveVideoUUID) 595
596 for (const server of servers) {
597 await waitUntilLiveEnded(server.url, server.accessToken, liveVideoUUID)
598 }
592 599
593 await waitJobs(servers) 600 await waitJobs(servers)
594 601