Bug 1503822 - Wait on netmonitor test end to prevent a crash during firefox shutdown. r=jdescottes, a=test-only
authorAlexandre Poirot <poirot.alex@gmail.com>
Thu, 08 Nov 2018 22:25:16 +0000
changeset 501153 75bdd5efc455dcd784b07bed04cd36dabe1aa159
parent 501152 4d29ca8acec1cfe9adab52f35aba27f749cb1b22
child 501154 9a5723abbaf07e35ce0eb394db045249d4a54b8b
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes, test-only
bugs1503822
milestone64.0
Bug 1503822 - Wait on netmonitor test end to prevent a crash during firefox shutdown. r=jdescottes, a=test-only MozReview-Commit-ID: Iw9y5QLpFCf Differential Revision: https://phabricator.services.mozilla.com/D11299
testing/talos/talos/tests/devtools/addon/content/tests/netmonitor/complicated.js
--- a/testing/talos/talos/tests/devtools/addon/content/tests/netmonitor/complicated.js
+++ b/testing/talos/talos/tests/devtools/addon/content/tests/netmonitor/complicated.js
@@ -18,10 +18,13 @@ module.exports = async function() {
     EXPECTED_REQUESTS);
   await reloadPageAndLog("complicated.netmonitor", toolbox);
   await requestsDone;
 
   await exportHar("complicated.netmonitor", toolbox);
 
   await closeToolboxAndLog("complicated.netmonitor", toolbox);
 
+  // Bug 1503822, wait one second on test end to prevent a crash during firefox shutdown.
+  await new Promise(r => setTimeout(r, 1000));
+
   await testTeardown();
 };