Skip to content

Commit

Permalink
Fix docker goss test (#6955)
Browse files Browse the repository at this point in the history
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 <simon.dudley@consensys.net>
Co-authored-by:  Usman Saleem <usman@usmans.info>
  • Loading branch information
siladu and usmansaleem committed Apr 17, 2024
1 parent 2bb0a59 commit f68db38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit f68db38

Please sign in to comment.