-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix event hash check test #46
fix event hash check test #46
Conversation
76d69a3
to
fdeb0a9
Compare
state/convert_test.go
Outdated
if idx < txnLen { | ||
col.txns = append(col.txns, txns[idx]) | ||
} | ||
col.txnResults = append(col.txnResults, result) |
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.
shouldn't txns
and txnResults
contain the same number of elements?
state/convert_test.go
Outdated
@@ -88,24 +88,30 @@ func TestDeriveEventsHash(t *testing.T) { | |||
client := spork.AccessNodes.Client() | |||
for blockHeight := startBlockHeight; blockHeight < endBlockHeight; blockHeight++ { | |||
block, err := client.BlockByHeight(ctx, blockHeight) | |||
txns, err := client.TransactionsByBlockID(ctx, block.Id) | |||
assert.NoError(t, err) |
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.
nit, many of these assert.NoError
should really be require.NoError
. require
aborts the test immediately if it's false, which is appropriate if the condition must be true for the rest of the test to be valid.
* initial test * using master branch of flow-go, updated deps to latest versions * fixed localnet bootstrap target, added docs * opentelemetry package updates (WIP) * opentelemetry package updates (done) * opentelemetry attribute option fix * opentelemetry attribute option fix 2 * reverted integration_test.py to mostly original * update localnet access node port * update hash version for localnet * reverted skipping hash check of chunk event collection * account creation using benchnet2 network * deploy contract using benchnet2 network * fix event hash check test (#46) * correct test case and revert original Event hash check * push * modify event hash testy * update tests for canary * correct block range * correct access addr * replicate block hash issue * fix block hash in test * change assert usage * update emulator chain ID to flow-benchnet * check commented out: mismatching event hash within chunk * emulator network support added (for BN2) * updated to latest version of flow, BN2 network * clean up --------- Co-authored-by: Amlandeep Bhadra <[email protected]>
Fixes #45