Bug 1632678 - Avoid promise shutdown failures in test r=jlast
authorDavid Walsh <dwalsh@mozilla.com>
Mon, 27 Apr 2020 18:04:42 +0000
changeset 526361 6a2052692d9202cd8110f21c4b2ca570dda10b89
parent 526360 52fb91a02056d6f8b803b4c12538991b5df1956d
child 526362 6437d716c498d4b7492e7c22128f47aa61b8c1ca
push id37354
push usershindli@mozilla.com
push dateTue, 28 Apr 2020 03:54:55 +0000
treeherdermozilla-central@cdd14a1df784 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlast
bugs1632678
milestone77.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1632678 - Avoid promise shutdown failures in test r=jlast Differential Revision: https://phabricator.services.mozilla.com/D72707
devtools/client/debugger/test/mochitest/browser_dbg-call-stack.js
--- a/devtools/client/debugger/test/mochitest/browser_dbg-call-stack.js
+++ b/devtools/client/debugger/test/mochitest/browser_dbg-call-stack.js
@@ -1,12 +1,15 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
 
+// Ignore strange errors when shutting down.
+PromiseTestUtils.whitelistRejectionsGlobally(/No such actor/);
+
 // checks to see if the frame is selected and the title is correct
 function isFrameSelected(dbg, index, title) {
   const $frame = findElement(dbg, "frame", index);
 
   const {
     selectors: { getSelectedFrame, getCurrentThread },
     getState,
   } = dbg;