From 26bd1b57876df27a425d3c62d73dffde3af83ac7 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Fri, 8 Apr 2016 17:48:08 +0100 Subject: [PATCH] Specify /dev/null stdin for netcat, to avoid inconsistency in Docker 1.11 --- test/190_no_fastdp_2_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/190_no_fastdp_2_test.sh b/test/190_no_fastdp_2_test.sh index 18d235fc..f469cc21 100755 --- a/test/190_no_fastdp_2_test.sh +++ b/test/190_no_fastdp_2_test.sh @@ -19,7 +19,7 @@ assert_raises "exec_on $HOST1 c1 sh -c 'ip link show ethwe | grep \ mtu\ 65535\ # Pump some data over a TCP socket between the containers. This # should cause PMTU discovery on the overlay network, and hence # exercise the sleeve code to generate an ICMP frag-needed. -assert_raises "exec_on $HOST1 c1 sh -c 'nc -l -p 5555 >/tmp/foo'" & +assert_raises "exec_on $HOST1 c1 sh -c 'nc -l -p 5555 /tmp/foo'" & sleep 5 assert_raises "exec_on $HOST2 c2 sh -c 'dd if=/dev/zero bs=10k count=1 | nc $C1 5555'" assert_raises "exec_on $HOST1 c1 sh -c 'test \$(stat -c %s /tmp/foo) -eq 10240'"