From 9463ceb87395f7faceb6a2ef471b62dc224ff51b Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Mon, 13 Jul 2015 10:31:20 +0100 Subject: [PATCH] test that large packets can be transmitted over weave --- test/100_cross_hosts_test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/100_cross_hosts_test.sh b/test/100_cross_hosts_test.sh index 4ea28f74..a2f77068 100755 --- a/test/100_cross_hosts_test.sh +++ b/test/100_cross_hosts_test.sh @@ -27,4 +27,10 @@ start_container $HOST2 net:$SUBNET_2 --name=c6 C6=$(container_ip $HOST2 c6) assert_raises "exec_on $HOST1 c5 $PING $C6" +# check large packets get through. The first attempt typically fails, +# since the PMTU hasn't been discovered yet. The 2nd attempt should +# succeed. +exec_on $HOST1 c1 $PING -s 65000 $C2 2>&1 1>/dev/null || true +assert_raises "exec_on $HOST1 c1 $PING -s 65000 $C2" + end_suite