-
-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace nap.sleep with a method to allow mocking after import #236
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