Test browser_inspector_fission_frame_navigation fails with Fission enabled
Categories
(DevTools :: Inspector, task, P3)
Tracking
(firefox81 fixed)
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(2 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
Bug 1655411 - Wait for target-available-processed in browser_inspector_fission_frame_navigation test
47 bytes,
text/x-phabricator-request
|
Details | Review |
Running mach test browser_inspector_fission_frame_navigation --enable-fission
fails locally with the following error message:
A promise chain failed to handle a rejection: Connection closed, pending request to server0.conn1.windowGlobal19327352833/consoleActor3, type startListeners failed
The test doesn't seem to fail on try so far though. I am testing on macos, while we don't seem to be running Fission mochitests on this platform for now. Maybe this is OS specific, or maybe the race is really just specific to my machine.
Assignee | ||
Comment 1•5 years ago
|
||
Thanks Nicolas for helping with the investigation, it turns out that this test passes when running in a test suite because a previous test calls:
PromiseTestUtils.allowMatchingRejectionsGlobally(/Connection closed/);
And the list of promises "globally" allowed are not cleaned up at the end of a test. Which means that calling this API in any test potentially leaks to the whole test suite.
I understand that allowMatchingRejectionsGlobally
should have a broader scope than expectUncaughtRejection
. But I thought this was only about the number of failures: allowMatchingRejectionsGlobally allowed any number of failures, and expectUncaughtRejection only allowed one. We should probably reduce our usage of allowMatchingRejectionsGlobally
as much as possible.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D84969
Updated•5 years ago
|
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1e917da8372e
https://hg.mozilla.org/mozilla-central/rev/b2f611f02ec0
Description
•