-
Notifications
You must be signed in to change notification settings - Fork 467
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
Use a struct over global vars in default_syncer_test #2700
Conversation
Hmm, quite a few conflicts - if this is generally the right track let me know and I'll fix them. Would prefer to know the solution is OK before resolving. |
@mslipper this is definitely the right approach and generally great. As you've probably already seen the conflicts are most likely all related to our new usage pattern around the require and assert packages introduced in PR #2657. These should be mostly orthogonal and hopefully make the rebase process simple (though surely tedious). |
Excellent. I'll resolve the conflicts shortly. |
57ab497
to
2ce5cbb
Compare
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 is great, thank you for cleaning up this mess
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.
Once the flags are added back, LGTM
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.
once @frrist 's comments are addressed, gtg... thanks for taking on this tedious task. so much better now
…t#2700) * Use a struct over global vars in default_syncer_test Closes filecoin-project#2116. * Remove bad unit test flags * Add UnitTest flags
Closes #2116. All
*Test
methods initialize a struct that contains the syncer params, which is in turn passed to all the other initialization/require*
methods. Let me know if there's an alternative approach you'd like me to implement.