From b6487e6811309675393f544be546367ba8684915 Mon Sep 17 00:00:00 2001 From: Michael Fraenkel Date: Thu, 7 Jul 2016 12:55:54 -0400 Subject: [PATCH] Use a well known target - cannot always access the gateway ip so use a well known target --- warden/spec/container/linux_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warden/spec/container/linux_spec.rb b/warden/spec/container/linux_spec.rb index 1a70fd01..4229c3ad 100644 --- a/warden/spec/container/linux_spec.rb +++ b/warden/spec/container/linux_spec.rb @@ -855,7 +855,7 @@ def verify_icmp_connectivity_to_host(handle) context "when allow_networks is configured" do # Allow traffic to the first two subnets - host_gw_ip = `ip route get 1.1.1.1 | cut -f 3 -d ' ' |head -n 1` + host_gw_ip = "8.8.4.4" let(:allow_networks) do [host_gw_ip] end