From 8cb0e9879a51c1f12b8ab8d9dcb076cd145e7375 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 18 Jul 2013 14:48:37 +0000 Subject: Use 127.0.0.1 instead of localhost We do not currently install an /etc/hosts in Baserock, and thus the name localhost is not guaranteed to resolve as expected. This patch changes the tests to use 127.0.0.1 instead, since that is the IP address we want localhost to resolve to. --- tests/update-gits-stratum.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/update-gits-stratum.script') diff --git a/tests/update-gits-stratum.script b/tests/update-gits-stratum.script index 112a8973..6ad95cd9 100755 --- a/tests/update-gits-stratum.script +++ b/tests/update-gits-stratum.script @@ -25,7 +25,7 @@ set -eu git daemon --port=9419 --pid-file="$DATADIR/git.pid" --reuseaddr \ --export-all --base-path="$DATADIR" 2> /dev/null & trap 'kill $(cat "$DATADIR/git.pid")' INT TERM ERR -REPO_ALIAS='test=git://localhost:9419/%s#git://localhost:9419/%s' +REPO_ALIAS='test=git://127.0.0.1:9419/%s#git://127.0.0.1:9419/%s' # Create an empty commit in a chunk repository cd "$DATADIR/chunk-repo" -- cgit v1.2.1