Skip to content
This repository

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

Closed
wants to merge 1 commit into from

2 participants

Nicholas Kinsey James Halliday
Nicholas Kinsey

No description provided.

James Halliday substack closed this March 01, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 15, 2012
fixed: test/bundle sometimes selects privileged ports (<1000) 22fe084
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  test/bundle.js
2  test/bundle.js
@@ -10,7 +10,7 @@ if (!path.existsSync(__dirname + '/../browser/bundle.js')) {
10 10
 
11 11
 test('checkCookieHTTP', function (t) {
12 12
     t.plan(3);
13  
-    var port = Math.floor(1e4 + (Math.random() * 5e4 - 1e4));
  13
+    var port = Math.floor(Math.random() * 40000 + 10000);
14 14
     
15 15
     var web = http.createServer(function (req, res) {
16 16
         res.setHeader('set-cookie', [ 'foo=bar' ]);
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.