From 1b4daf7c5f70ca8884a58a73454a216786faac9f Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 25 Feb 2022 19:07:24 -0500 Subject: [PATCH] name begin/end_events --- internal/state/indexer/block/kv/kv_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/state/indexer/block/kv/kv_test.go b/internal/state/indexer/block/kv/kv_test.go index f44459aee..b3a73be20 100644 --- a/internal/state/indexer/block/kv/kv_test.go +++ b/internal/state/indexer/block/kv/kv_test.go @@ -92,19 +92,19 @@ func TestBlockIndexer(t *testing.T) { q: query.MustCompile(`block.height = 5`), results: []int64{5}, }, - "begin_event.key1 = 'value1'": { + "finalize_event.key1 = 'value1'": { q: query.MustCompile(`finalize_event1.key1 = 'value1'`), results: []int64{}, }, - "begin_event.proposer = 'FCAA001'": { + "finalize_event.proposer = 'FCAA001'": { q: query.MustCompile(`finalize_event1.proposer = 'FCAA001'`), results: []int64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, }, - "end_event.foo <= 5": { + "finalize_event.foo <= 5": { q: query.MustCompile(`finalize_event2.foo <= 5`), results: []int64{2, 4}, }, - "end_event.foo >= 100": { + "finalize_event.foo >= 100": { q: query.MustCompile(`finalize_event2.foo >= 100`), results: []int64{1}, }, @@ -112,11 +112,11 @@ func TestBlockIndexer(t *testing.T) { q: query.MustCompile(`block.height > 2 AND finalize_event2.foo <= 8`), results: []int64{4, 6, 8}, }, - "begin_event.proposer CONTAINS 'FFFFFFF'": { + "finalize_event.proposer CONTAINS 'FFFFFFF'": { q: query.MustCompile(`finalize_event1.proposer CONTAINS 'FFFFFFF'`), results: []int64{}, }, - "begin_event.proposer CONTAINS 'FCAA001'": { + "finalize_event.proposer CONTAINS 'FCAA001'": { q: query.MustCompile(`finalize_event1.proposer CONTAINS 'FCAA001'`), results: []int64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, },