Skip to content

Truly independent web browser

Tests/LibWeb: Collect a media session test’s audio off the stack

sideshowbarker93113caacbc5
diff --git a/Tests/LibWeb/Text/input/MediaSession/active-session-collected-audio.html b/Tests/LibWeb/Text/input/MediaSession/active-session-collected-audio.html
index 386f68c3f61..1c0909f2f62 100644
--- a/Tests/LibWeb/Text/input/MediaSession/active-session-collected-audio.html
+++ b/Tests/LibWeb/Text/input/MediaSession/active-session-collected-audio.html
@@ -28,7 +28,7 @@ promiseTest(async () => {
// Reading activeMediaSessionState recomputes the state, so check the published state before polling it.
for (let turn = 0; turn < 20 && publishedState() !== null; ++turn) {
await nextTurn();
- internals.gc();
+ await internals.gcAsync();
await nextTurn();
}
println(`audio collected: ${weakAudio.deref() === undefined}`);