Bug 1431535 - Increase timeout for new connection in test_disable_enable_new_connections from timeout 1.0 to 10.0. r=whimboo, a=test-only
authorAmit Kumar <amit2rockpower@gmail.com>
Mon, 29 Jan 2018 18:24:24 +0530
changeset 452172 5ed2ef7317d0
parent 452171 b3403ce787c0
child 452173 e82e444a853a
push id8642
push userryanvm@gmail.com
push dateFri, 02 Feb 2018 21:00:08 +0000
treeherdermozilla-beta@8660689b18cd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswhimboo, test-only
bugs1431535
milestone59.0
Bug 1431535 - Increase timeout for new connection in test_disable_enable_new_connections from timeout 1.0 to 10.0. r=whimboo, a=test-only 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,