Browse Source

Use '127.0.0.1' instead of 'localhost' for keep-alive test

ab seems to have to problem resolving 'localhost' on Urban's computer.
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
6c9ec1ac40
  1. 2
      test/mjsunit/test-keep-alive.js

2
test/mjsunit/test-keep-alive.js

@ -23,7 +23,7 @@ function error (msg) {
} }
function runAb(opts, callback) { function runAb(opts, callback) {
sys.exec("ab " + opts + " http://localhost:" + PORT + "/") sys.exec("ab " + opts + " http://127.0.0.1:" + PORT + "/")
.addErrback(error) .addErrback(error)
.addCallback(function (out) { .addCallback(function (out) {
var matches = /Requests per second:\s*(\d+)\./mi.exec(out); var matches = /Requests per second:\s*(\d+)\./mi.exec(out);

Loading…
Cancel
Save