From 90bbe0bd1e3092e32f36b79445e0513c3b76a0f2 Mon Sep 17 00:00:00 2001 From: yzang2019 Date: Wed, 14 Aug 2024 12:50:30 -0700 Subject: [PATCH] Fix --- ss/store_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ss/store_test.go b/ss/store_test.go index 861a4a1..d1de2f2 100644 --- a/ss/store_test.go +++ b/ss/store_test.go @@ -17,12 +17,12 @@ func TestNewStateStore(t *testing.T) { ssConfig := config.StateStoreConfig{ DedicatedChangelog: true, Backend: string(PebbleDBBackend), - AsyncWriteBuffer: 10, - KeepRecent: 100, + AsyncWriteBuffer: 50, + KeepRecent: 500, } stateStore, err := NewStateStore(logger.NewNopLogger(), tempDir, ssConfig) require.NoError(t, err) - for i := 1; i < 10; i++ { + for i := 1; i < 20; i++ { var changesets []*proto.NamedChangeSet kvPair := &iavl.KVPair{ Delete: false, @@ -49,7 +49,7 @@ func TestNewStateStore(t *testing.T) { require.NoError(t, err) // Make sure key and values can be found - for i := 1; i < 10; i++ { + for i := 1; i < 20; i++ { value, err := stateStore.Get("storeA", int64(i), []byte(fmt.Sprintf("key%d", i))) require.NoError(t, err) require.Equal(t, fmt.Sprintf("value%d", i), string(value))