Skip to content

Commit

Permalink
Use test port instead of 8000 in test-http-304
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 5, 2010
1 parent c0d42b0 commit 1415650
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/simple/test-http-304.js
Expand Up @@ -8,12 +8,12 @@ s = http.createServer(function (request, response) {
response.writeHead(304);
response.end();
})
s.listen(8000);
sys.puts('Server running at http://127.0.0.1:8000/')
s.listen(PORT);
sys.puts('Server running at http://127.0.0.1:'+PORT+'/')

s.addListener('listening', function () {

childProcess.exec('curl http://127.0.0.1:8000/', function (err, stdout, stderr) {
childProcess.exec('curl http://127.0.0.1:'+PORT+'/', function (err, stdout, stderr) {
if (err) throw err;
s.close();
sys.puts('curled response correctly');
Expand Down

0 comments on commit 1415650

Please sign in to comment.