Bug 1174674 - Remove octal value syntax errors from Telemetry tests. r=gfritzsche
authorAlessio Placitelli <alessio.placitelli@gmail.com>
Thu, 01 Oct 2015 10:35:00 +0200
changeset 266017 fc2079a6af20
parent 266016 b19e47b1b333
child 266018 106a6e4b877e
push id15517
push useralessio.placitelli@gmail.com
push dateMon, 05 Oct 2015 17:30:12 +0000
treeherderfx-team@fc2079a6af20 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgfritzsche
bugs1174674
milestone44.0a1
Bug 1174674 - Remove octal value syntax errors from Telemetry tests. r=gfritzsche
toolkit/components/telemetry/tests/unit/test_TelemetryController.js
--- a/toolkit/components/telemetry/tests/unit/test_TelemetryController.js
+++ b/toolkit/components/telemetry/tests/unit/test_TelemetryController.js
@@ -278,17 +278,17 @@ add_task(function* test_archivePings() {
   let promise = TelemetryArchive.promiseArchivedPingById(pingId);
   Assert.ok((yield promiseRejects(promise)),
     "TelemetryController should not archive pings if the archive pref is disabled.");
 
   // Enable archiving and the upload so that pings get sent and archived again.
   Preferences.set(uploadPref, true);
   Preferences.set(PREF_ARCHIVE_ENABLED, true);
 
-  now = new Date(2014, 06, 18, 22, 0, 0);
+  now = new Date(2014, 6, 18, 22, 0, 0);
   fakeNow(now);
   // Restore the non asserting ping handler.
   PingServer.resetPingHandler();
   pingId = yield sendPing(true, true);
 
   // Check that we archive pings when successfully sending them.
   yield PingServer.promiseNextPing();
   ping = yield TelemetryArchive.promiseArchivedPingById(pingId);