Skip to content

Commit

Permalink
Fixing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
monsur committed Jan 16, 2016
1 parent 976ce19 commit f06d6c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/server/event.test.js
Expand Up @@ -239,8 +239,8 @@ describe('subscribe internal', function() {
// TODO: Validate that renew is actually called.
};
Event.setTimeout = function(callback, timeout) {
assert(timeout < 7200);
assert(timeout > 1800);
assert(timeout <= 7200);
assert(timeout >= 1800);
callback();
};
event.subscribeInternal({}, function(error, data) {
Expand All @@ -259,8 +259,8 @@ describe('subscribe internal', function() {
}});
};
Event.setTimeout = function(callback, timeout) {
assert(timeout < 25920000);
assert(timeout > 6480000);
assert(timeout <= 25920000);
assert(timeout >= 6480000);
};
event.subscribeInternal({}, function(error, data) {
assert.equal(error, null);
Expand Down

0 comments on commit f06d6c2

Please sign in to comment.