-
Notifications
You must be signed in to change notification settings - Fork 166
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
Fix retrying logic #480
Fix retrying logic #480
Conversation
It was refreshing on each of the calls. I think the `before_sleep` is the correct hook.
new_token = "new_jwt_token" | ||
new_header = dict(TEST_HEADERS) | ||
new_header["Authorization"] = f"Bearer {new_token}" | ||
|
||
rest_mock.post( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This mock
was never called.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this is why I didn't catch it while validating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for catching this @Fokko
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @Fokko for fixing this and thanks @anupam-saini for reviewing!
It was refreshing on each of the calls. I think the
before_sleep
is the correct hook.