From 20c32e7233b6bdeaff0c4c44d004329cb61c36b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 30 Mar 2015 21:33:50 +0200 Subject: [PATCH] tests: give firewallvm more time to apply the rules Not everyone use fast SSD drive and 4+ core CPU... --- tests/network.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/network.py b/tests/network.py index 7ea581d3..f4f65d40 100644 --- a/tests/network.py +++ b/tests/network.py @@ -206,7 +206,7 @@ class VmNetworkingMixin(qubes.tests.SystemTestsMixin): }) self.proxy.write_iptables_qubesdb_entry() # Ugly hack b/c there is no feedback when the rules are actually applied - time.sleep(1) + time.sleep(3) self.assertEqual(self.run_cmd(self.testvm1, self.ping_ip), 0, "Ping by IP failed (should be allowed now)") self.assertNotEqual(self.run_cmd(self.testvm1, self.ping_name), 0, @@ -221,7 +221,7 @@ class VmNetworkingMixin(qubes.tests.SystemTestsMixin): }) self.proxy.write_iptables_qubesdb_entry() # Ugly hack b/c there is no feedback when the rules are actually applied - time.sleep(1) + time.sleep(3) self.assertEqual(self.run_cmd(self.testvm1, self.ping_name), 0, "Ping by name failed (should be allowed now)") self.assertNotEqual(self.run_cmd(self.testvm1, nc_cmd), 0, @@ -240,7 +240,7 @@ class VmNetworkingMixin(qubes.tests.SystemTestsMixin): }] }) self.proxy.write_iptables_qubesdb_entry() # Ugly hack b/c there is no feedback when the rules are actually applied - time.sleep(1) + time.sleep(3) self.assertEqual(self.run_cmd(self.testvm1, nc_cmd), 0, "TCP connection failed (should be allowed now)") @@ -258,7 +258,7 @@ class VmNetworkingMixin(qubes.tests.SystemTestsMixin): }) self.proxy.write_iptables_qubesdb_entry() # Ugly hack b/c there is no feedback when the rules are actually applied - time.sleep(1) + time.sleep(3) self.assertNotEqual(self.run_cmd(self.testvm1, nc_cmd), 0, "TCP connection should be blocked") @@ -317,4 +317,4 @@ def load_tests(loader, tests, pattern): 'VmNetworking_' + template, (VmNetworkingMixin, qubes.tests.QubesTestCase), {'template': template}))) - return tests \ No newline at end of file + return tests