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

fix event hash check test #46

Merged

Conversation

koko1123
Copy link
Collaborator

@koko1123 koko1123 commented Oct 3, 2023

Fixes #45

@koko1123 koko1123 closed this Oct 3, 2023
@koko1123 koko1123 reopened this Oct 3, 2023
@koko1123 koko1123 changed the base branch from main to misha/43-ci-integration-tests October 5, 2023 19:50
@koko1123 koko1123 force-pushed the amlandeep/fix-event-hash-check branch from 76d69a3 to fdeb0a9 Compare October 5, 2023 21:06
@koko1123 koko1123 changed the title fix event hash check fix event hash check test Oct 5, 2023
Comment on lines 107 to 110
if idx < txnLen {
col.txns = append(col.txns, txns[idx])
}
col.txnResults = append(col.txnResults, result)
Copy link
Collaborator

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?

@@ -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)
Copy link
Collaborator

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.

@koko1123 koko1123 merged commit 9c8863d into misha/43-ci-integration-tests Oct 10, 2023
@koko1123 koko1123 deleted the amlandeep/fix-event-hash-check branch October 10, 2023 17:32
gomisha added a commit that referenced this pull request Oct 19, 2023
* 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]>
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.

[BUG] Test for the event hash in convert_test.go does not follow the same code path as process.go
3 participants