http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable.html is flaky
[WebKit-https.git] / LayoutTests / http / tests / workers / service / resources / basic-unregister-then-register-again-reuse-worker.js
1 self.addEventListener("message", function(event) {
2     event.waitUntil(new Promise((resolve, reject) => {
3         setTimeout(() => {
4             resolve();
5         }, 30000);
6     }));
7     client = event.source;
8     setTimeout(function() {
9         client.postMessage("ExtendedLifetime");
10     }, 0);
11 });