MCPcopy Create free account
hub / github.com/pytorch/pytorch / _test_simple_wait

Method _test_simple_wait

test/distributed/test_store.py:123–127  ·  view source on GitHub ↗
(self, fs)

Source from the content-addressed store, hash-verified

121 self._test_compare_set(self._create_store())
122
123 def _test_simple_wait(self, fs):
124 with self.assertRaisesRegex(RuntimeError, "[t -i]imeout"):
125 fs.wait(["bad_key"], timedelta(seconds=0.25))
126 fs.add("good_key", 1)
127 fs.wait(["good_key"])
128
129 def test_simple_wait(self):
130 self._test_simple_wait(self._create_store())

Callers 1

test_simple_waitMethod · 0.95

Calls 3

assertRaisesRegexMethod · 0.80
waitMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected