]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Increase ping count on ARP spoof test
authorKevin Benton <blak111@gmail.com>
Tue, 30 Jun 2015 05:24:22 +0000 (22:24 -0700)
committerKevin Benton <blak111@gmail.com>
Tue, 30 Jun 2015 05:26:10 +0000 (22:26 -0700)
The other IPv4 tests all have a count of 2 to tolerate
ping failures due to slow ARP response/interface setup/etc.
This patch increases test_arp_spoof_allowed_address_pairs_0cidr
to 2 to match.

Closes-Bug: #1470234
Change-Id: I82bd8397672194f6162eef5392d4f19d57450552

neutron/tests/functional/agent/test_ovs_flows.py

index 0a1a932a78eab1b9d8dee33d53d5a5298e3072be..5d73ea1a5f309f20a8237dfc78147468a1a248e2 100644 (file)
@@ -166,7 +166,7 @@ class _ARPSpoofTestCase(object):
                                                          '1.2.3.4'])
         self.src_p.addr.add('%s/24' % self.src_addr)
         self.dst_p.addr.add('%s/24' % self.dst_addr)
-        net_helpers.assert_ping(self.src_namespace, self.dst_addr)
+        net_helpers.assert_ping(self.src_namespace, self.dst_addr, count=2)
 
     def test_arp_spoof_disable_port_security(self):
         # block first and then disable port security to make sure old rules