check error from db.Apply in TestPebbleLogData

This commit is contained in:
sashass1315 2025-09-22 21:41:15 +03:00 committed by GitHub
parent aa37bd063d
commit 2ba7927b9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {