Retry test on address already in use error (#14815)
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 6 Dec 2018 01:07:26 +0000 (17:07 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 6 Dec 2018 01:09:46 +0000 (17:09 -0800)
Summary:
Thanks nairbv for the suggestion.

Also see #14589.

Fixes #14703.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14815

Differential Revision: D13351913

Pulled By: pietern

fbshipit-source-id: d11a4152505d0ce15592b13e417bb80551476a61

test/test_c10d.py

index 19479ce..a4b4fd7 100644 (file)
@@ -247,6 +247,7 @@ class RendezvousTest(TestCase):
 
 
 class RendezvousEnvTest(TestCase):
+    @retry_on_address_already_in_use_error
     def test_common_errors(self):
         # TODO remove this hack
         if not hasattr(c10d, "ProcessGroupNCCL"):