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

refactor (datafile management): Remove timeout factory #267

Merged
merged 4 commits into from
May 10, 2019

Conversation

mjc1283
Copy link
Contributor

@mjc1283 mjc1283 commented May 10, 2019

Summary

This removes timeoutFactory as a required property in the config object accepted by the HTTPPollingDatafileManager constructor. timeoutFactory was only used as a way to control timeouts during test runs. Instead, use Jest's fake timer functionality.

Test plan

Updated unit tests. Manually tested

Issues

https://optimizely.atlassian.net/browse/OASIS-4669

@mjc1283 mjc1283 requested review from mikeproeng37 and a team May 10, 2019 16:49
Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.58% when pulling 620628a on mcarroll/remove-timeout-factory into 39c3b2d on master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.58% when pulling 620628a on mcarroll/remove-timeout-factory into 39c3b2d on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.58% when pulling 620628a on mcarroll/remove-timeout-factory into 39c3b2d on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.58% when pulling 620628a on mcarroll/remove-timeout-factory into 39c3b2d on master.

@mjc1283 mjc1283 merged commit bfebb68 into master May 10, 2019
@mjc1283 mjc1283 deleted the mcarroll/remove-timeout-factory branch May 10, 2019 18:10
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