Replace nap.sleep with a method to allow mocking after import#236
Replace nap.sleep with a method to allow mocking after import#236mergify[bot] merged 3 commits intojd:masterfrom
Conversation
0cf2154 to
f78368a
Compare
f78368a to
9fa1280
Compare
|
Ok, I think this branch is ready to merge now. |
|
@ivanprado : Fascinating failure when I merged your change 78a462e (#253) into this PR branch. This PR makes a tweak to allow easier mocking of nap.sleep, but the test failures indicate that when using the I tweaked the test to invoke using Smells like we're getting nested layers of retrying, but I can't immediately see how or why that is happening. (Also, if that were the case I'd intuitively expect 4 x 4 = 16 retries, but seems we're getting 24 (= 4 x 6?) retries.) This failure also hints we might want to (re-)introduce test coverage for the |
|
Wow. I have no idea what can be going on. To give an idea, we might change this line 78a462e#diff-03f4d209c0b66034a81979dd67efaa24R435 by: self(self, *args, **kwargs)But in theory, it is completely equivalent. Could you try just in case it changes anything? |
|
@ivanprado : The issue was that you are passing PR #258 raised to resolve this. |
|
@Mergifyio update |
|
Command
|
|
Tests are green again now. Is there anything else required before this PR can be merged? |
Fixes #228