From: Pieter Noordhuis Date: Thu, 6 Dec 2018 01:15:51 +0000 (-0800) Subject: Increase test timeout (#14814) X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~2442 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67dcf10631d4854657d3f42e4c7611567039c44c;p=platform%2Fupstream%2Fpytorch.git 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 --- 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) "):