From f68db3801b580e11e8b89d9e19782d79ef6c7fe3 Mon Sep 17 00:00:00 2001 From: Simon Dudley Date: Wed, 17 Apr 2024 16:30:48 +1000 Subject: [PATCH] Fix docker goss test (#6955) Disable IPv6 in docker container for goss_wait test Since docker 26.0.0, IPv6 is used by default but our goss_wait test is expecting ports to be exposed on IPv4. Disabling IPv6 should work for all docker versions --------- Signed-off-by: Simon Dudley Co-authored-by: Usman Saleem --- docker/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/test.sh b/docker/test.sh index 1d30224f45..1538ced8d5 100755 --- a/docker/test.sh +++ b/docker/test.sh @@ -20,7 +20,7 @@ if [[ $i != 0 ]]; then exit $i; fi # we test that things listen on the right interface/port, not what interface the advertise # hence we dont set p2p-host=0.0.0.0 because this sets what its advertising to devp2p; the important piece is that it defaults to listening on all interfaces GOSS_FILES_PATH=$TEST_PATH/01 \ -bash $TEST_PATH/dgoss run $DOCKER_IMAGE \ +bash $TEST_PATH/dgoss run --sysctl net.ipv6.conf.all.disable_ipv6=1 $DOCKER_IMAGE \ --network=dev \ --rpc-http-enabled \ --rpc-ws-enabled \