Skip to content

Commit 266dab1

Browse files
committed
test: extend webrtc stream readiness wait
1 parent c616a99 commit 266dab1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/e2e-webrtc-reliability.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ const interactionsEnabled = process.env.SIMDECK_E2E_INTERACTIONS !== "0";
2828
const maxPeerDisconnectedMs = Number(
2929
process.env.SIMDECK_E2E_MAX_PEER_DISCONNECTED_MS ?? 1000,
3030
);
31+
const streamReadyTimeoutMs = Number(
32+
process.env.SIMDECK_E2E_STREAM_READY_MS ?? 90_000,
33+
);
3134
const maxDecoderDrops = Number(process.env.SIMDECK_E2E_MAX_DECODER_DROPS ?? 0);
3235
const minVideoWidth = Number(process.env.SIMDECK_E2E_MIN_VIDEO_WIDTH ?? 0);
3336
const minVideoHeight = Number(process.env.SIMDECK_E2E_MIN_VIDEO_HEIGHT ?? 0);
@@ -498,7 +501,7 @@ try {
498501
})()
499502
`,
500503
Boolean,
501-
20_000,
504+
streamReadyTimeoutMs,
502505
);
503506

504507
const initialMetrics = await fetchJson(endpoint("/api/metrics"));

0 commit comments

Comments
 (0)