From 67dcf10631d4854657d3f42e4c7611567039c44c Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 5 Dec 2018 17:15:51 -0800 Subject: [PATCH] Increase test timeout (#14814) Summary: It is possible that some sort of contention causes process scheduling delays which in turn cause the timeout to *not* be hit. Increased sleep here will decrease the probability of this happening. Fixes #14555. Pull Request resolved: https://github.com/pytorch/pytorch/pull/14814 Differential Revision: D13351924 Pulled By: pietern fbshipit-source-id: 1222cf0855408dfcb79f30f94694c790ee998cf9 --- test/test_c10d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_c10d.py b/test/test_c10d.py index a4b4fd7..5e715d8 100644 --- a/test/test_c10d.py +++ b/test/test_c10d.py @@ -1100,7 +1100,7 @@ class ProcessGroupGlooTest(MultiProcessTestCase): # Sleep on one of the processes to trigger barrier timeout if self.rank == 0: - time.sleep(0.6) + time.sleep(1.0) # The barrier will now time out with self.assertRaisesRegex(RuntimeError, " (Timed out|closed) "): -- 2.7.4