Skip to content

Commit

Permalink
increase test timeout for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
brianc committed Aug 7, 2012
1 parent e6c46ae commit f5b49f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test-helper.js
Expand Up @@ -31,7 +31,7 @@ assert.emits = function(item, eventName, callback, message) {
test("Should have called " + eventName, function() {
assert.ok(called, message || "Expected '" + eventName + "' to be called.")
});
},2000);
},5000);

item.once(eventName, function() {
if (eventName === 'error') {
Expand Down Expand Up @@ -123,7 +123,7 @@ var expect = function(callback, timeout) {
var executed = false;
var id = setTimeout(function() {
assert.ok(executed, "Expected execution of function to be fired");
}, timeout || 2000)
}, timeout || 5000)

return function(err, queryResult) {
clearTimeout(id);
Expand Down Expand Up @@ -169,7 +169,7 @@ process.on('uncaughtException', function(err) {
var count = 0;

var Sink = function(expected, timeout, callback) {
var defaultTimeout = 1000;
var defaultTimeout = 5000;
if(typeof timeout == 'function') {
callback = timeout;
timeout = defaultTimeout;
Expand Down

0 comments on commit f5b49f1

Please sign in to comment.