mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 21:26:42 +00:00
check error from db.Apply in TestPebbleLogData
This commit is contained in:
parent
aa37bd063d
commit
2ba7927b9d
1 changed files with 3 additions and 1 deletions
|
|
@ -71,7 +71,9 @@ func TestPebbleLogData(t *testing.T) {
|
|||
|
||||
b := db.NewBatch()
|
||||
b.LogData(nil, nil)
|
||||
db.Apply(b, pebble.Sync)
|
||||
if err := db.Apply(b, pebble.Sync); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
_, _, err = db.Get(nil)
|
||||
if !errors.Is(err, pebble.ErrNotFound) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue