-
Notifications
You must be signed in to change notification settings - Fork 2
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
Hung add test ProcessBandOraclePrices #24
Hung add test ProcessBandOraclePrices #24
Conversation
…oracle_module_test_ProcessBandOraclePrices
…sBandOraclePrices
x/oracle/keeper/band_oracle_test.go
Outdated
if tt.expectedRate != 0 { | ||
priceState := app.OracleKeeper.GetBandPriceState(ctx, "ATOM") | ||
require.NotNil(t, priceState) | ||
require.Equal(t, tt.expectedRate, priceState.Rate.Int64()) |
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.
We should get the PriceState.Price
and compare instead of rate 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.
We also need to check whether BandCallDataRecord
was deleted after this line k.DeleteBandCallDataRecord(ctx, uint64(clientID))
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.
LGTM!
1b5f180
into
onomyprotocol:nhan/oracle_module
No description provided.