test(voice): build watch attempt keys from the shared builder (#2693)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-11 19:44:34 +02:00
1 parent 2e3f78b3c6
commit cadca2c18e
2 files changed
+7 -5

No files matched your search

@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {screenShareWatchAttemptKey} from '@app/features/voice/components/useScreenShareWatchFailure';
import {
selectVoiceMediaGraphFailure,
selectVoiceMediaGraphViewerStreamKeys,
@@ -101,7 +102,7 @@ describe('VoiceMediaGraphTimerScheduler', () => {
store.transition({
type: 'watch.attemptEnsured',
streamKey: STREAM_KEY,
attemptKey: `${STREAM_KEY}:1:watch`,
attemptKey: screenShareWatchAttemptKey({streamKey: STREAM_KEY, watchGeneration: 1}),
startedAt: store.nowMs(),
});
harness.advance(WATCH_ATTEMPT_TIMEOUT_MS);