Skip to content
This repository
Browse code

fixed conflict, yay more tests

  • Loading branch information...
commit 9e7fa8c8d33211c5d72af025e518c1e58dca0a33 2 parents dd1c72e + 8d6e58d
James Halliday authored February 24, 2013

Showing 1 changed file with 15 additions and 0 deletions. Show diff stats Hide diff stats

  1. 15  test/port0.js
15  test/port0.js
... ...
@@ -0,0 +1,15 @@
  1
+var dnode = require('../');
  2
+var test = require('tap').test;
  3
+
  4
+test('port0', function (t) {
  5
+    t.plan(2);
  6
+    var port = 0;
  7
+
  8
+    var server = dnode().listen(port);
  9
+
  10
+    server.on('listening', function () {
  11
+      t.ok(server.address().port !== port);
  12
+      t.ok(server.address().port > 0);
  13
+      server.close();
  14
+    });
  15
+});

0 notes on commit 9e7fa8c

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