Skip to content
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: Retry logic #808

Merged
merged 1 commit into from
Jun 19, 2018
Merged

Fix: Retry logic #808

merged 1 commit into from
Jun 19, 2018

Conversation

tonyjin
Copy link
Contributor

@tonyjin tonyjin commented Jun 19, 2018

  • Remove incorrect short-circuit-on-retry logic. This short circuit was being called any time you called preview on the same file twice and subsequent loads would always fail because the short circuit happened before an access token was assigned
  • Set up fake clock in beforeEach of tests for handleFetchError() - not resetting the timer was causing weird issues

@boxcla
Copy link

boxcla commented Jun 19, 2018

Verified that @tonyjin has signed the CLA. Thanks for the pull request!

- Remove incorrect short-circuit-on-retry logic. This short circuit was being called any time you called preview on the same file twice and subsequent loads would always fail because the short circuit happened before an access token was assigned
- Set up fake clock in beforeEach of tests for handleFetchError() - not resetting the timer was causing weird issues
@tonyjin tonyjin merged commit 906d47a into box:master Jun 19, 2018
@tonyjin tonyjin deleted the fix-retry branch June 19, 2018 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants