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 <simon.dudley@consensys.net>
Co-authored-by:  Usman Saleem <usman@usmans.info>
pull/6964/head
Simon Dudley 7 months ago committed by GitHub
parent 2bb0a59860
commit f68db3801b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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 # 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 # 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 \ 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 \ --network=dev \
--rpc-http-enabled \ --rpc-http-enabled \
--rpc-ws-enabled \ --rpc-ws-enabled \

Loading…
Cancel
Save