Skip to content

Commit

Permalink
Use more test ports because Netty adapter doesn't always
Browse files Browse the repository at this point in the history
close in a timely way.
  • Loading branch information
Gregory Brail committed Sep 26, 2014
1 parent b0814e4 commit 31478cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions net/src/test/resources/tests/blackholeresponsetest2.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ var svr = http.createServer(function(req, resp) {
});
});

svr.listen(33340, function() {
http.get('http://localhost:33340/', function(resp) {
svr.listen(33341, function() {
http.get('http://localhost:33341/', function(resp) {
var received = '';
resp.setEncoding('utf8');
assert.equal(resp.statusCode, 500);
Expand Down
4 changes: 2 additions & 2 deletions net/src/test/resources/tests/slowrequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ var svr = http.createServer(function(req, resp) {
});
});

svr.listen(33340, function() {
svr.listen(33342, function() {
var req = http.request({
hostname: 'localhost',
port: 33340,
port: 33342,
path: '/',
method: 'POST'
}, function(resp) {
Expand Down
4 changes: 2 additions & 2 deletions net/src/test/resources/tests/slowresponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ var svr = http.createServer(function(req, resp) {
});
});

svr.listen(33340, function() {
http.get('http://localhost:33340/', function(resp) {
svr.listen(33343, function() {
http.get('http://localhost:33343/', function(resp) {
var received = '';
resp.setEncoding('utf8');
assert.equal(resp.statusCode, 200);
Expand Down

0 comments on commit 31478cf

Please sign in to comment.