Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ergels Gaxhaj committed Jan 31, 2023
1 parent 3f523d8 commit 65af340
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions store/listenkv/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
4 changes: 2 additions & 2 deletions store/types/listening_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand Down

0 comments on commit 65af340

Please sign in to comment.