Skip to content

Commit

Permalink
fix dates on transport test
Browse files Browse the repository at this point in the history
  • Loading branch information
revington authored and indexzero committed Oct 6, 2014
1 parent 96bb9f1 commit 6f4bec1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/transports/transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ module.exports = function (transport, options) {
'topic': function () {
if (!transport.query) return;
var cb = this.callback;
var start = new Date - 100 * 1000;
var end = new Date + 100 * 1000;
var start = Date.now() - (100 * 1000);
var end = Date.now() + (100 * 1000);
logger.query({ from: start, until: end }, cb);
},
'should return matching results': function (err, results) {
Expand All @@ -190,7 +190,7 @@ module.exports = function (transport, options) {
if (!transport.query) return;
var cb = this.callback;
logger.log('info', 'bad from and until', {}, function () {
var now = new Date + 1000000;
var now = Date.now() + 1000000;
logger.query({ from: now, until: now }, cb);
});
},
Expand Down

0 comments on commit 6f4bec1

Please sign in to comment.