From 6c9ec1ac40be58c2feb0adb72d08c35ee5e2633d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 7 Nov 2009 17:31:40 +0100 Subject: [PATCH] Use '127.0.0.1' instead of 'localhost' for keep-alive test ab seems to have to problem resolving 'localhost' on Urban's computer. --- test/mjsunit/test-keep-alive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mjsunit/test-keep-alive.js b/test/mjsunit/test-keep-alive.js index f82080d90ac..e360f6ef168 100644 --- a/test/mjsunit/test-keep-alive.js +++ b/test/mjsunit/test-keep-alive.js @@ -23,7 +23,7 @@ function error (msg) { } function runAb(opts, callback) { - sys.exec("ab " + opts + " http://localhost:" + PORT + "/") + sys.exec("ab " + opts + " http://127.0.0.1:" + PORT + "/") .addErrback(error) .addCallback(function (out) { var matches = /Requests per second:\s*(\d+)\./mi.exec(out);