Skip to content
Browse files

[test][minor] Ensure that the socket is actually a socket

  • Loading branch information...
1 parent 9a81ce6 commit 6c8ee6b2196fb81d1ff8acb45c80eef91a54c8f5 @3rd-Eden 3rd-Eden committed Feb 13, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/prop-test.js
View
4 test/prop-test.js
@@ -35,8 +35,10 @@ vows.describe('union/properties').addBatch({
assert.equal(req.httpVersionMinor, 1);
},
'the `req` should have proper `socket` reference set': function (err, req) {
+ var net = require('net');
+
assert.isNull(err);
- assert.isTrue(!!req.socket);
+ assert.isTrue(req.socket instanceof net.Socket);
}
}
}

0 comments on commit 6c8ee6b

Please sign in to comment.
Something went wrong with that request. Please try again.