Bug 1154856 - (Aurora version) Fix TelemetrySession test issues. r=vladan,a=lmandel
authorGeorg Fritzsche <georg.fritzsche@googlemail.com>
Mon, 20 Apr 2015 11:54:00 +0200
changeset 267223 17f73d964965d84870ed239f3818c72b833c699f
parent 267222 3b81354f6a5b2419d7762f2aba4c5179ee8184c3
child 267224 625de3552971c50bc348b85267db0b06b233992e
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvladan, lmandel
bugs1154856
milestone39.0a2
Bug 1154856 - (Aurora version) Fix TelemetrySession test issues. r=vladan,a=lmandel
toolkit/components/telemetry/tests/unit/test_TelemetrySession.js
--- a/toolkit/components/telemetry/tests/unit/test_TelemetrySession.js
+++ b/toolkit/components/telemetry/tests/unit/test_TelemetrySession.js
@@ -1660,16 +1660,17 @@ add_task(function* test_schedulerUserIdl
   fakeIdleNotification("active");
 
   // When user is back active, the scheduler tick should be 5 minutes again.
   Assert.equal(schedulerTimeout, SCHEDULER_TICK_INTERVAL_MS);
 
   // We should not miss midnight when going to idle.
   now.setHours(23);
   now.setMinutes(50);
+  fakeNow(now);
   fakeIdleNotification("idle");
   Assert.equal(schedulerTimeout, 10 * 60 * 1000);
 
   yield TelemetrySession.shutdown();
 });
 
 add_task(function* test_sendDailyOnIdle() {
   if (gIsAndroid || gIsGonk) {