Skip to content

Commit d3ba322

Browse files
committed
Add more output to test to help debug it on travis
1 parent 5c6e58c commit d3ba322

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

test/integration/client/error-handling-tests.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,13 @@ test('when connecting to invalid host', function() {
119119
password: '1234',
120120
host: 'asldkfjasdf!!#1308140.com'
121121
});
122-
assert.emits(client, 'error');
122+
var delay = 5000;
123+
var tid = setTimeout(function() {
124+
assert(false, "When connecting to an invalid host the error event should be emitted but it has been " + delay + " and still no error event.");
125+
}, delay);
126+
client.on('error', function() {
127+
clearTimeout(tid);
128+
})
123129
client.connect();
124130
});
125131

@@ -135,8 +141,8 @@ test('when connecting to invalid host with callback', function() {
135141
});
136142

137143
test('multiple connection errors (gh#31)', function() {
144+
return false;
138145
test('with single client', function() {
139-
return false;
140146
//don't run yet...this test fails...need to think of fix
141147
var client = new Client({
142148
user: 'blaksdjf',
@@ -151,6 +157,11 @@ test('multiple connection errors (gh#31)', function() {
151157
assert.emits(client, 'error');
152158
});
153159
});
160+
161+
test('with callback method', function() {
162+
var badConString = "tcp://aslkdfj:oi14081@"+helper.args.host+":"+helper.args.port+"/"+helper.args.database;
163+
return false;
164+
});
154165
});
155166

156167
test('query receives error on client shutdown', function() {

0 commit comments

Comments
 (0)