Allow HLS test to wait for stream changes
This commit is contained in:
parent
f4ed7d7453
commit
57beaacd2c
7
.github/workflows/hls-tests.yml
vendored
7
.github/workflows/hls-tests.yml
vendored
@ -28,5 +28,10 @@ jobs:
|
|||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.8'
|
go-version: '1.18.8'
|
||||||
|
|
||||||
- name: Run HLS tests
|
- 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
|
||||||
|
@ -95,7 +95,7 @@ describe('fetch and parse HLS', () => {
|
|||||||
var lastSegmentUrl;
|
var lastSegmentUrl;
|
||||||
for (let i = 0; i < HLS_FETCH_ITERATIONS; i++) {
|
for (let i = 0; i < HLS_FETCH_ITERATIONS; i++) {
|
||||||
test('fetch and monitor media playlist segments ' + i, async (done) => {
|
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 {
|
try {
|
||||||
var playlist = await getPlaylist(mediaPlaylistUrl);
|
var playlist = await getPlaylist(mediaPlaylistUrl);
|
||||||
|
@ -13,6 +13,8 @@ start_owncast
|
|||||||
|
|
||||||
start_stream
|
start_stream
|
||||||
|
|
||||||
|
sleep 10
|
||||||
|
|
||||||
# Run tests against a fresh install with no settings.
|
# Run tests against a fresh install with no settings.
|
||||||
npm test
|
npm test
|
||||||
|
|
||||||
@ -30,5 +32,7 @@ update_storage_config
|
|||||||
|
|
||||||
start_stream
|
start_stream
|
||||||
|
|
||||||
|
sleep 10
|
||||||
|
|
||||||
# Re-run the HLS test against the external storage configuration.
|
# Re-run the HLS test against the external storage configuration.
|
||||||
npm test
|
npm test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user