Add more output to test to help debug it on travis
This commit is contained in:
parent
5c6e58c017
commit
d3ba322e3c
@ -119,7 +119,13 @@ test('when connecting to invalid host', function() {
|
||||
password: '1234',
|
||||
host: 'asldkfjasdf!!#1308140.com'
|
||||
});
|
||||
assert.emits(client, 'error');
|
||||
var delay = 5000;
|
||||
var tid = setTimeout(function() {
|
||||
assert(false, "When connecting to an invalid host the error event should be emitted but it has been " + delay + " and still no error event.");
|
||||
}, delay);
|
||||
client.on('error', function() {
|
||||
clearTimeout(tid);
|
||||
})
|
||||
client.connect();
|
||||
});
|
||||
|
||||
@ -135,8 +141,8 @@ test('when connecting to invalid host with callback', function() {
|
||||
});
|
||||
|
||||
test('multiple connection errors (gh#31)', function() {
|
||||
test('with single client', function() {
|
||||
return false;
|
||||
test('with single client', function() {
|
||||
//don't run yet...this test fails...need to think of fix
|
||||
var client = new Client({
|
||||
user: 'blaksdjf',
|
||||
@ -151,6 +157,11 @@ test('multiple connection errors (gh#31)', function() {
|
||||
assert.emits(client, 'error');
|
||||
});
|
||||
});
|
||||
|
||||
test('with callback method', function() {
|
||||
var badConString = "tcp://aslkdfj:oi14081@"+helper.args.host+":"+helper.args.port+"/"+helper.args.database;
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
test('query receives error on client shutdown', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user