Skip to content

fix (datafile management): Clear timeout created in onReady method when it's no longer needed #272

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

Merged
merged 4 commits into from
May 16, 2019

Conversation

mjc1283
Copy link
Contributor

@mjc1283 mjc1283 commented May 16, 2019

Summary

onReady sets a timeout that fulfills a timeout promise. The timeout promise is only used to race against the ready promise provided by ProjectConfigManager. So, as soon as ProjectConfigManager's ready promise is fulfilled, the timeout can be cleared. Before this change, the timeout would only be cleared in the close method.

Test plan

Manual & added unit test

@mjc1283 mjc1283 requested review from jordangarcia and a team May 16, 2019 00:08
@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 97.587% when pulling 3474172 on mcarroll/onready-clear-timeout-early into 057a219 on master.

@mjc1283 mjc1283 merged commit 69dbde1 into master May 16, 2019
@mjc1283 mjc1283 deleted the mcarroll/onready-clear-timeout-early branch May 16, 2019 00:38
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.

3 participants