Bug 1861519 - [1/1] increase arbitrary timeout in test r=ipc-reviewers,nika

Despite having passed through test-verify cleanly, the crash test is
still sometimes failing due to a dump not being generated.

Increase it to one full second, to give the file dialog time to open. If
this doesn't suffice we'll have to either add another flavor of promise
in the test-only code, or disable the test entirely.

Differential Revision: https://phabricator.services.mozilla.com/D192101
This commit is contained in:
Ray Kraesig 2023-10-30 22:20:16 +00:00
parent c89d952c0b
commit 0263135c35

View File

@ -53,7 +53,7 @@ function openFileDialog() {
// window hook for the file dialog being shown and `await`ing on that.
//
// eslint-disable-next-line mozilla/no-arbitrary-setTimeout
await new Promise(res => setTimeout(res, 500));
await new Promise(res => setTimeout(res, 1000));
return pid;
})();