Permalink
Browse files

fix port ranges in tests

  • Loading branch information...
1 parent d38394b commit 6cfc253fe384d79541f7bd3cae733d8ab85ee679 @substack committed Mar 27, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −1 test/alloc.js
  2. +1 −1 test/meta.js
  3. +1 −1 test/meta_service.js
  4. +1 −1 test/secret.js
  5. +1 −1 test/service.js
  6. +1 −1 test/versions.js
View
2 test/alloc.js
@@ -3,7 +3,7 @@ var seaport = require('../');
test('alloc and free', function (t) {
t.plan(6);
- var port = Math.floor(Math.random() * 5e5 + 1e5);
+ var port = Math.floor(Math.random() * 5e4 + 1e4);
var server = seaport.createServer();
var gotPort;
View
2 test/meta.js
@@ -3,7 +3,7 @@ var seaport = require('../');
test('allocate with metadata', function (t) {
t.plan(13);
- var port = Math.floor(Math.random() * 5e5 + 1e5);
+ var port = Math.floor(Math.random() * 5e4 + 1e4);
var server = seaport.createServer();
var gotPort;
View
2 test/meta_service.js
@@ -3,7 +3,7 @@ var test = require('tap').test;
test('meta params in a service', function (t) {
t.plan(5);
- var serverPort = Math.floor(Math.random() * 5e5 + 1e5);
+ var serverPort = Math.floor(Math.random() * 5e4 + 1e4);
var server = seaport.createServer();
server.listen(serverPort);
View
2 test/secret.js
@@ -3,7 +3,7 @@ var test = require('tap').test;
test('secret', function (t) {
t.plan(4);
- var serverPort = Math.floor(Math.random() * 5e5 + 1e5);
+ var serverPort = Math.floor(Math.random() * 5e4 + 1e4);
var server = seaport.createServer({ secret : 'o_O' });
server.listen(serverPort);
View
2 test/service.js
@@ -3,7 +3,7 @@ var test = require('tap').test;
test('service', function (t) {
t.plan(4);
- var serverPort = Math.floor(Math.random() * 5e5 + 1e5);
+ var serverPort = Math.floor(Math.random() * 5e4 + 1e4);
var server = seaport.createServer();
server.listen(serverPort);
View
2 test/versions.js
@@ -4,7 +4,7 @@ var test = require('tap').test;
test('versions', function (t) {
t.plan(5);
- var serverPort = Math.floor(Math.random() * 5e5 + 1e5);
+ var serverPort = Math.floor(Math.random() * 5e4 + 1e4);
var server = seaport.createServer();
server.listen(serverPort);

0 comments on commit 6cfc253

Please sign in to comment.