Permalink
Browse files

fixed: test/bundle sometimes selects privileged ports (<1000)

  • Loading branch information...
1 parent 4745db3 commit 22fe08428107cfcbec250f57a1750ef55529f9d1 Nicholas Kinsey committed Apr 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/bundle.js
View
@@ -10,7 +10,7 @@ if (!path.existsSync(__dirname + '/../browser/bundle.js')) {
test('checkCookieHTTP', function (t) {
t.plan(3);
- var port = Math.floor(1e4 + (Math.random() * 5e4 - 1e4));
+ var port = Math.floor(Math.random() * 40000 + 10000);
var web = http.createServer(function (req, res) {
res.setHeader('set-cookie', [ 'foo=bar' ]);

0 comments on commit 22fe084

Please sign in to comment.