Bug 1442090 - Cleanup preference after a Normandy test to pass under mochitest --verify r=Gijs
authorMike Cooper <mcooper@mozilla.com>
Fri, 27 Apr 2018 10:12:50 -0700
changeset 469665 7a3c6621037191b5a205070a2b9e116ef7fa4404
parent 469664 fa02de71ebf73aea9f5d30b591aacd83b3440bd3
child 469666 1d9860be7583fa8c3f5152b80d01e392d9e83f14
push id9174
push userarchaeopteryx@coole-files.de
push dateMon, 30 Apr 2018 15:33:30 +0000
treeherdermozilla-beta@1b1a8ab75f1f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1442090
milestone61.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 1442090 - Cleanup preference after a Normandy test to pass under mochitest --verify r=Gijs MozReview-Commit-ID: JcGYOy3aKe8
toolkit/components/normandy/test/browser/browser_Normandy.js
--- a/toolkit/components/normandy/test/browser/browser_Normandy.js
+++ b/toolkit/components/normandy/test/browser/browser_Normandy.js
@@ -147,16 +147,21 @@ decorate_task(
       [[{"test.study-pref": 1}]],
       "finishInit should record original values of the study prefs",
     );
     Assert.deepEqual(
       rolloutsRecordOriginalValueStub.args,
       [[{"test.rollout-pref": 1}]],
       "finishInit should record original values of the study prefs",
     );
+
+    // cleanup
+    defaultBranch.deleteBranch(experimentPref1);
+    defaultBranch.deleteBranch(experimentPref2);
+    defaultBranch.deleteBranch(experimentPref3);
   },
 );
 
 // Test that startup prefs are handled correctly when there is a value on the user branch but not the default branch.
 decorate_task(
   withPrefEnv({
     set: [
       ["app.normandy.startupExperimentPrefs.testing.does-not-exist", "foo"],