From 44e0c6add77bc64c74ef8df166f5ac891351ea63 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Sun, 29 Jul 2018 17:51:05 +0000 Subject: [PATCH] Try to fix failing test 840 --- test/840_weave_kube_3_test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/840_weave_kube_3_test.sh b/test/840_weave_kube_3_test.sh index 0efde493..2e7a5e8a 100755 --- a/test/840_weave_kube_3_test.sh +++ b/test/840_weave_kube_3_test.sh @@ -214,11 +214,17 @@ spec: access: deny EOF +# Allow some time for the policy change to take effect +sleep 1 + assert_raises "$SSH $HOST1 $KUBECTL exec $denyPodName -- curl -s -S -f -m 2 http://$DOMAIN:8080/status >/dev/null" # remove the access for nettest-deny run_on $HOST1 "$KUBECTL delete netpol allow-nettest-deny" +# Allow some time for the policy change to take effect +sleep 1 + # nettest-deny should still not be able to reach nettest pods assert_raises "! $SSH $HOST1 $KUBECTL exec $denyPodName -- curl -s -S -f -m 2 http://$DOMAIN:8080/status >/dev/null"