Permalink
Browse files

fixed conflict, yay more tests

  • Loading branch information...
2 parents dd1c72e + 8d6e58d commit 9e7fa8c8d33211c5d72af025e518c1e58dca0a33 @substack committed Feb 24, 2013
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/port0.js
View
@@ -0,0 +1,15 @@
+var dnode = require('../');
+var test = require('tap').test;
+
+test('port0', function (t) {
+ t.plan(2);
+ var port = 0;
+
+ var server = dnode().listen(port);
+
+ server.on('listening', function () {
+ t.ok(server.address().port !== port);
+ t.ok(server.address().port > 0);
+ server.close();
+ });
+});

0 comments on commit 9e7fa8c

Please sign in to comment.