Skip to content

Commit fd74233

Browse files
committed
Update how we get the IP of a container in e2e
1 parent bc91985 commit fd74233

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test_e2e.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function docker_ip() {
165165
echo "usage: $0 <id>"
166166
return 1
167167
fi
168-
docker inspect "$1" | jq -r .[0].NetworkSettings.IPAddress
168+
docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "$1"
169169
}
170170

171171
function docker_kill() {
@@ -1887,12 +1887,14 @@ function e2e::sync_depth_change_on_restart() {
18871887
##############################################
18881888
function e2e::auth_http_password() {
18891889
# Run a git-over-HTTP server.
1890+
set -x
18901891
local ctr
18911892
ctr=$(docker_run \
18921893
-v "$REPO":/git/repo:ro \
18931894
e2e/test/httpd)
18941895
local ip
18951896
ip=$(docker_ip "$ctr")
1897+
sleep 30
18961898

18971899
# Try with wrong username
18981900
assert_fail \

0 commit comments

Comments
 (0)