Bug 984014 - Telemetry experiments - Test experiment update. r=felipe
This commit is contained in:
@@ -8,7 +8,6 @@ Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/osfile.jsm");
|
||||
Cu.import("resource:///modules/experiments/Experiments.jsm");
|
||||
|
||||
const FILE_CACHE = "experiments.json";
|
||||
const PREF_EXPERIMENTS_ENABLED = "experiments.enabled";
|
||||
const PREF_LOGGING_LEVEL = "experiments.logging.level";
|
||||
const PREF_LOGGING_DUMP = "experiments.logging.dump";
|
||||
@@ -20,11 +19,6 @@ let gHttpServer = null;
|
||||
let gHttpRoot = null;
|
||||
let gPolicy = new Experiments.Policy();
|
||||
|
||||
function removeCacheFile() {
|
||||
let path = OS.Path.join(OS.Constants.Path.profileDir, FILE_CACHE);
|
||||
return OS.File.remove(path);
|
||||
}
|
||||
|
||||
function run_test() {
|
||||
createAppInfo();
|
||||
gProfileDir = do_get_profile();
|
||||
@@ -84,3 +78,7 @@ add_task(function* test_fetchInvalid() {
|
||||
|
||||
yield ex.uninit();
|
||||
});
|
||||
|
||||
add_task(function* shutdown() {
|
||||
yield removeCacheFile();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user