Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed Aug 14, 2024
1 parent ff524bb commit 90bbe0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ss/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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))
Expand Down

0 comments on commit 90bbe0b

Please sign in to comment.