Nir Soffer has posted comments on this change. Change subject: tests: Improve utils.retry tests ......................................................................
Patch Set 2: (1 comment) https://gerrit.ovirt.org/#/c/46399/2/tests/utilsTests.py File tests/utilsTests.py: Line 121: def testTimeoutNoTimeForSleep(self): Line 122: # time action Line 123: # 0 first attempt Line 124: # 1 bail out (1 + 1 == deadline) Line 125: with FakeMonotonicTime(0) as fake_time: > You did the magic here, we do not need the now attribute directly: I read your comment too fast. This is indeed nicer, thanks. Line 126: Line 127: def operation(): Line 128: time.sleep(1) Line 129: raise RuntimeError -- To view, visit https://gerrit.ovirt.org/46399 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I62062f36e20d263b1aed64135345d496cb7cfd61 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir Soffer <[email protected]> Gerrit-Reviewer: Adam Litke <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Edward Haas <[email protected]> Gerrit-Reviewer: Francesco Romani <[email protected]> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Nir Soffer <[email protected]> Gerrit-Reviewer: Piotr Kliczewski <[email protected]> Gerrit-Reviewer: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
