From 65af34022eaf4a1a6a1d6d474e17d231329ae038 Mon Sep 17 00:00:00 2001 From: Ergels Gaxhaj Date: Mon, 30 Jan 2023 18:08:23 -0600 Subject: [PATCH] fix tests --- store/listenkv/store_test.go | 4 ++-- store/types/listening_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/store/listenkv/store_test.go b/store/listenkv/store_test.go index f5f93a730fad..081f29871fc1 100644 --- a/store/listenkv/store_test.go +++ b/store/listenkv/store_test.go @@ -125,11 +125,11 @@ func TestListenKVStoreSet(t *testing.T) { func TestListenKVStoreDelete(t *testing.T) { testCases := []struct { key []byte - expectedOut types.StoreKVPair + expectedOut *types.StoreKVPair }{ { key: kvPairs[0].Key, - expectedOut: types.StoreKVPair{ + expectedOut: &types.StoreKVPair{ Key: kvPairs[0].Key, Value: nil, StoreKey: testStoreKey.Name(), diff --git a/store/types/listening_test.go b/store/types/listening_test.go index e2ca4c61a0af..034d2a49601c 100644 --- a/store/types/listening_test.go +++ b/store/types/listening_test.go @@ -21,7 +21,7 @@ func TestOnWrite(t *testing.T) { // test set listener.OnWrite(testStoreKey, testKey, testValue, false) outputKVPair := listener.PopStateCache()[0] - expectedOutputKVPair := StoreKVPair{ + expectedOutputKVPair := &StoreKVPair{ Key: testKey, Value: testValue, StoreKey: testStoreKey.Name(), @@ -32,7 +32,7 @@ func TestOnWrite(t *testing.T) { // test delete listener.OnWrite(testStoreKey, testKey, testValue, true) outputKVPair = listener.PopStateCache()[0] - expectedOutputKVPair = StoreKVPair{ + expectedOutputKVPair = &StoreKVPair{ Key: testKey, Value: testValue, StoreKey: testStoreKey.Name(),