Permalink
Browse files

fix self-referential test since tap hangs on circular deepEqual

  • Loading branch information...
1 parent 28a470f commit 2deeddcae5c2b1fcec59d11202efdf5aa8d8828d @substack committed Apr 7, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/self-referential.js
View
@@ -1,7 +1,8 @@
var dnode = require('../')
var test = require('tap').test;
+var util = require('util');
-test('simple', function (t) {
+test('self-referential', function (t) {
t.plan(6);
var port = Math.floor(Math.random() * 40000 + 10000);
@@ -26,7 +27,7 @@ test('simple', function (t) {
args.push(args)
remote.print(args, function (m) {
- t.deepEqual(m, args);
+ t.equal(util.inspect(m), util.inspect(args));
conn.end();
server.close();

0 comments on commit 2deeddc

Please sign in to comment.