Skip to content

Commit a97c6e6

Browse files
committed
Bug 1975980 - report uncaught rejections caused by preference observers firing when resetting prefs after a test, r=jmaher.
Differential Revision: https://phabricator.services.mozilla.com/D256281
1 parent fbdf128 commit a97c6e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testing/mochitest/browser-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,8 @@ Tester.prototype = {
10061006
);
10071007
}
10081008

1009+
this.PromiseTestUtils.assertNoUncaughtRejections();
1010+
10091011
// Note the test run time
10101012
let name = this.currentTest.path;
10111013
name = name.slice(name.lastIndexOf("/") + 1);

0 commit comments

Comments
 (0)