Skip to content

Commit 855d27b

Browse files
author
pengzhen
committed
fix: test error
1 parent 7ade239 commit 855d27b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/pebble/storage_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package ethpepple
22

33
import (
44
"testing"
5+
"time"
56

67
"github.com/holiman/uint256"
78
"github.com/optimism-java/shisui2/storage"
@@ -160,4 +161,6 @@ func TestPrune(t *testing.T) {
160161
assert.NoError(t, err)
161162
actual := uint256.NewInt(2).Bytes32()
162163
assert.Equal(t, data, actual[:])
164+
// wait compact finish or test will fail
165+
time.Sleep(2 * time.Second)
163166
}

0 commit comments

Comments
 (0)