You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ca...@codespot.com on 2012/01/09 21:06:59 UTC

[cassandra-node] push by tomaz.muraus - Make testConnectToBadUrl work with v0.6 branch of node.js. Contributed... on 2012-01-09 20:04 GMT

Revision: eaf9120382b9
Author:   Tomaz Muraus <to...@tomaz.me>
Date:     Mon Jan  9 12:03:36 2012
Log:      Make testConnectToBadUrl work with v0.6 branch of node.js.  
Contributed by
Christoph Tavan <ta...@nemata.com> part of #21.

http://code.google.com/a/apache-extras.org/p/cassandra-node/source/detail?r=eaf9120382b9

Modified:
  /test/test_driver.js

=======================================
--- /test/test_driver.js	Mon Jan  9 11:57:04 2012
+++ /test/test_driver.js	Mon Jan  9 12:03:36 2012
@@ -214,7 +214,7 @@
  exports.testConnectToBadUrl = function(test, assert) {
    connect({port:19171}, function(err, con) {
      assert.ok(err);
-    assert.strictEqual(err.toString(), 'Error: ECONNREFUSED, Connection  
refused');
+    assert.strictEqual(err.code, 'ECONNREFUSED');
      test.finish();
    });
  };