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
Tests: Various race fixes and move TestFixtureToDataHandler #1534
Conversation
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.
Looks good to me, only some pedantic things, that you can resolve at your choosing. Nice.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1534 +/- ##
==========================================
+ Coverage 35.89% 37.87% +1.97%
==========================================
Files 409 412 +3
Lines 177453 147950 -29503
==========================================
- Hits 63699 56031 -7668
+ Misses 105899 84057 -21842
- Partials 7855 7862 +7
|
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.
Just some 🏃 racey features left over here
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.
Good stuff, thanks for addressing my change requests. There's a couple of error on the CI build
752fe2e
to
907d016
Compare
@shazbert Shout when you're done with this (and/or resolve threads). |
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.
Changes look good 👍 can proceed with rebase.
0b928df
to
93fee81
Compare
@shazbert Following discussion with @thrasher- I've switched it back to using a new Fixed 93fee81 Everything else was a rebase of what you've already seen. |
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.
Thanks for the changes. tACK! 🚀
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.
Changes ACK.
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.
tACK!
if ps == nil { | ||
return nil, errPairStoreIsNil | ||
return nil |
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.
The removal of the error here and making returning nil an acceptable situation is something that could lead to panics as not much code is prepared for that.
At present it looks like only a botched test via Load
will lead to this which is acceptable and addressable by the offending user, but I still need to point out because 🦕
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.
Understood.
Calling StorePairs on global instance can lead to race
This should delegate entirely to PairManager's IsAssetSupported
TestGetCurrencyTradeURL would fail sometimes due to sequencing of enabling futures but not having pairs for it.
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.
tACK, nice work! NOTE: BTSE issues are being worked on in a separate branch.
copy
with slices.CloneType of change
How has this been tested