Skip to content

Commit

Permalink
add test case to events
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Aug 16, 2024
1 parent d2c1016 commit 2ea5698
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/pebble/operation/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ func TestRetrieveEventByBlockIDTxID(t *testing.T) {

// create block ids, transaction ids and event types slices
blockIDs := []flow.Identifier{flow.HashToID([]byte{0x01}), flow.HashToID([]byte{0x02})}
txIDs := []flow.Identifier{flow.HashToID([]byte{0x11}), flow.HashToID([]byte{0x12})}
txIDs := []flow.Identifier{flow.HashToID([]byte{0x11}), flow.HashToID([]byte{0x12}),
[32]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
}
eTypes := []flow.EventType{flow.EventAccountCreated, flow.EventAccountUpdated}

// create map of block id to event, tx id to event and event type to event
Expand Down

0 comments on commit 2ea5698

Please sign in to comment.