Skip to content

Commit 6c9ec1a

Browse files
committed
Use '127.0.0.1' instead of 'localhost' for keep-alive test
ab seems to have to problem resolving 'localhost' on Urban's computer.
1 parent cff1df1 commit 6c9ec1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/mjsunit/test-keep-alive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function error (msg) {
2323
}
2424

2525
function runAb(opts, callback) {
26-
sys.exec("ab " + opts + " http://localhost:" + PORT + "/")
26+
sys.exec("ab " + opts + " http://127.0.0.1:" + PORT + "/")
2727
.addErrback(error)
2828
.addCallback(function (out) {
2929
var matches = /Requests per second:\s*(\d+)\./mi.exec(out);

0 commit comments

Comments
 (0)