]> granicus.if.org Git - python/commitdiff
Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 14 Jul 2011 12:53:24 +0000 (14:53 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 14 Jul 2011 12:53:24 +0000 (14:53 +0200)
test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.

Lib/test/test_socketserver.py

index d4c3621b79001ddf50474caff32c7045f4e52ec8..08d79c01f36e55d6995090a874d911a076f5b386 100644 (file)
@@ -66,7 +66,7 @@ class SocketServerTest(unittest.TestCase):
     """Test all socket servers."""
 
     def setUp(self):
-        signal_alarm(20)  # Kill deadlocks after 20 seconds.
+        signal_alarm(60)  # Kill deadlocks after 60 seconds.
         self.port_seed = 0
         self.test_files = []
 
@@ -283,4 +283,3 @@ def test_main():
 
 if __name__ == "__main__":
     test_main()
-    signal_alarm(3)  # Shutdown shouldn't take more than 3 seconds.