mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
increase test timeout for travis
This commit is contained in:
parent
e6c46aed17
commit
f5b49f1f42
@ -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') {
|
||||
@ -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);
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user