Bug 1431535 Increase timeout for new connection in test_disable_enable_new_connections from timeout 1.0 to 10.0 draft
authorAmit Kumar <amit2rockpower@gmail.com>
Mon, 29 Jan 2018 18:24:24 +0530
changeset 748786 ea440e9c1edd
parent 748205 a6c753e77345
push id97230
push userbmo:amit2rockpower@gmail.com
push dateTue, 30 Jan 2018 10:58:43 +0000
bugs1431535
milestone60.0a1
Bug 1431535 Increase timeout for new connection in test_disable_enable_new_connections from timeout 1.0 to 10.0 MozReview-Commit-ID: KjRu5yMHxFO
testing/marionette/harness/marionette_harness/tests/unit/test_marionette.py
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_marionette.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_marionette.py
@@ -43,17 +43,17 @@ class TestMarionette(MarionetteTestCase)
             self.marionette._send_message("acceptConnections", {"value": False})
             self.assertEqual(1, self.marionette.execute_script("return 1"))
 
             # but only new connection attempts
             marionette = Marionette(host=self.marionette.host, port=self.marionette.port)
             self.assertRaises(socket.timeout, marionette.raise_for_port, timeout=1.0)
 
             self.marionette._send_message("acceptConnections", {"value": True})
-            marionette.raise_for_port(timeout=1.0)
+            marionette.raise_for_port(timeout=10.0)
 
         finally:
             self.marionette._send_message("acceptConnections", {"value": True})
 
     def test_client_socket_uses_expected_socket_timeout(self):
         current_socket_timeout = self.marionette.socket_timeout
 
         self.assertEqual(current_socket_timeout,