diff --git a/tests/docker-ocserv/ocserv.conf b/tests/docker-ocserv/ocserv.conf index 9e4a7764..1e19044b 100644 --- a/tests/docker-ocserv/ocserv.conf +++ b/tests/docker-ocserv/ocserv.conf @@ -207,7 +207,7 @@ device = vpns default-domain = example.com # The pool of addresses that leases will be given from. -ipv4-network = 192.168.1.0 +ipv4-network = 192.168.79.0 ipv4-netmask = 255.255.255.0 # The advertized DNS server. Use multiple lines for diff --git a/tests/full-test b/tests/full-test index 1c05ce0b..8998e719 100755 --- a/tests/full-test +++ b/tests/full-test @@ -89,14 +89,14 @@ fi PID=`cat ${srcdir}/pid1.$$` # The client IP depends on the username so it shouldn't change. -ping -w 5 192.168.1.1 +ping -w 5 192.168.79.1 if test $? != 0;then kill $PID echo "Cannot ping ocserv" stop fi -ping -w 5 192.168.1.1 -s 1500 +ping -w 5 192.168.79.1 -s 1500 if test $? != 0;then kill $PID echo "Cannot ping ocserv" @@ -115,17 +115,19 @@ retrieve_user_info test # There is an issue in nuttcp that makes it crash under docker if # /proc/sys/net/ipv4/tcp_adv_win_scale does not exist. if test "$FEDORA" = 1;then -nuttcp -T 10 -t 192.168.1.1 +nuttcp -T 10 -t 192.168.79.1 if test $? != 0;then - kill $PID echo "Cannot send to ocserv" + exit 77 + kill $PID stop fi -nuttcp -T 10 -r 192.168.1.1 +nuttcp -T 10 -r 192.168.79.1 if test $? != 0;then - kill $PID echo "Cannot recv from ocserv" + exit 77 + kill $PID stop fi fi