Skip to content

Commit

Permalink
Bug 1565858 - aboutdebugging sidebar test should use longer timings i…
Browse files Browse the repository at this point in the history
…n debug builds r=daisuke, a=test-only

When running in debug builds, the test will use the default timings instead of the faster ones.

Differential Revision: https://phabricator.services.mozilla.com/D46476

--HG--
extra : source : c758cfb21827704d62ebd1966ee7dc2c4090887b
extra : intermediate-source : d02ca673ea9e10bd7e09c76aefe0e84f0fbbced5
  • Loading branch information
juliandescottes committed Sep 20, 2019
1 parent df9e84a commit 5be604c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ add_task(async function() {
});

async function setupPreferences() {
if (SpecialPowers.isDebugBuild) {
// On debug builds, reducing the timings might lead to skip the "warning"
// state and will block the test execution.
// Do not change the timings in debug builds.
return;
}

await pushPref(
"devtools.aboutdebugging.test-connection-timing-out-delay",
CONNECTION_TIMING_OUT_DELAY
Expand Down

0 comments on commit 5be604c

Please sign in to comment.