Bug 1534342 - Fix test flakiness introduced by not blocking on parser.setSource().
authorLogan Smyth <loganfsmyth@gmail.com>
Tue, 12 Mar 2019 03:25:17 +0000
changeset 521477 fe49766985d1cd1437fcdd959bec07b2ba557620
parent 521476 2c83d53042c614a6dcc19fa576401ea916e4c2d4
child 521478 ede970649f873246c6f23b83924345827fb6d5c3
push id10866
push usernerli@mozilla.com
push dateTue, 12 Mar 2019 18:59:09 +0000
treeherdermozilla-beta@445c24a51727 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1534342
milestone67.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 1534342 - Fix test flakiness introduced by not blocking on parser.setSource(). Differential Revision: https://phabricator.services.mozilla.com/D23080
devtools/client/debugger/new/test/mochitest/browser_dbg-tabs-without-urls.js
--- a/devtools/client/debugger/new/test/mochitest/browser_dbg-tabs-without-urls.js
+++ b/devtools/client/debugger/new/test/mochitest/browser_dbg-tabs-without-urls.js
@@ -19,9 +19,16 @@ add_task(async function() {
   invokeInTab("doEval");
   await waitForPaused(dbg);
   await resume(dbg);
   is(countTabs(dbg), 4);
 
   // Test reloading the debugger
   await reload(dbg, "simple1", "simple2");
   is(countTabs(dbg), 2);
+
+  // TODO: This is here to make this test less flakey because otherwise the
+  // test will end while the files are still loading, which will stop all
+  // in-progress requests causing uncaught rejections when querying
+  // 'getBreakpointPositionsCompressed'.
+  await selectSource(dbg, "simple1");
+  await selectSource(dbg, "simple2");
 });