Permalink
Browse files

work around for node's default behaviour (exiting with exception when…

… a connection is refused)
  • Loading branch information...
1 parent c46d205 commit 94c151eaa46cd897c9743377b180c180d75fe3f9 Hendrik Schnepel committed Oct 31, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/test-client.js
View
@@ -14,6 +14,7 @@ var
E: false,
F: false,
G: false,
+ H: false
};
// Get a list of all databases
@@ -77,6 +78,9 @@ client
// Test connecting to a port where there is no couch
var client2 = couchdb.createClient(3921);
+client2._addClientListener('error', function(er) {
+ if (er) callbacks.H = true;
+});
client2
.uuids(function(er, r) {
if (er) callbacks.G = true;

0 comments on commit 94c151e

Please sign in to comment.