0

Allow HLS test to wait for stream changes

This commit is contained in:
Gabe Kangas 2023-01-22 21:07:49 -08:00
parent f4ed7d7453
commit 57beaacd2c
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
3 changed files with 92 additions and 83 deletions

View File

@ -28,5 +28,10 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: '1.18.8'
- name: Run HLS tests
run: cd test/automated/hls && ./run.sh
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: cd test/automated/hls && ./run.sh

View File

@ -95,7 +95,7 @@ describe('fetch and parse HLS', () => {
var lastSegmentUrl;
for (let i = 0; i < HLS_FETCH_ITERATIONS; i++) {
test('fetch and monitor media playlist segments ' + i, async (done) => {
await new Promise((r) => setTimeout(r, 3000));
await new Promise((r) => setTimeout(r, 5000));
try {
var playlist = await getPlaylist(mediaPlaylistUrl);

View File

@ -13,6 +13,8 @@ start_owncast
start_stream
sleep 10
# Run tests against a fresh install with no settings.
npm test
@ -30,5 +32,7 @@ update_storage_config
start_stream
sleep 10
# Re-run the HLS test against the external storage configuration.
npm test