Enable connection failure error handling tests
This commit is contained in:
parent
5806afc8a1
commit
95507dac5f
@ -114,7 +114,6 @@ test('non-error calls supplied callback', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('when connecting to invalid host', function() {
|
test('when connecting to invalid host', function() {
|
||||||
return false;
|
|
||||||
var client = new Client({
|
var client = new Client({
|
||||||
user: 'aslkdjfsdf',
|
user: 'aslkdjfsdf',
|
||||||
password: '1234',
|
password: '1234',
|
||||||
@ -125,7 +124,6 @@ test('when connecting to invalid host', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('when connecting to invalid host with callback', function() {
|
test('when connecting to invalid host with callback', function() {
|
||||||
return false;
|
|
||||||
var client = new Client({
|
var client = new Client({
|
||||||
user: 'brian',
|
user: 'brian',
|
||||||
password: '1234',
|
password: '1234',
|
||||||
@ -137,8 +135,8 @@ test('when connecting to invalid host with callback', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('multiple connection errors (gh#31)', function() {
|
test('multiple connection errors (gh#31)', function() {
|
||||||
return false;
|
|
||||||
test('with single client', function() {
|
test('with single client', function() {
|
||||||
|
return false;
|
||||||
//don't run yet...this test fails...need to think of fix
|
//don't run yet...this test fails...need to think of fix
|
||||||
var client = new Client({
|
var client = new Client({
|
||||||
user: 'blaksdjf',
|
user: 'blaksdjf',
|
||||||
@ -153,11 +151,6 @@ test('multiple connection errors (gh#31)', function() {
|
|||||||
assert.emits(client, 'error');
|
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() {
|
test('query receives error on client shutdown', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user