Skip to content

Commit

Permalink
rawdb: add DeleteBlock case to TestSidecarStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco4203 committed Aug 9, 2024
1 parent fd3e65e commit 7061006
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/rawdb/accessors_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1128,4 +1128,10 @@ func TestSidecarStorage(t *testing.T) {
if entry := ReadBlobSidecars(db, hash, 0); entry != nil {
t.Fatalf("Deleted body returned: %v", entry)
}
// Write the sidecars again, delete the block, and verify the execution
WriteBlobSidecars(db, hash, 0, sidecars)
DeleteBlock(db, hash, 0)
if entry := ReadBlobSidecars(db, hash, 0); entry != nil {
t.Fatalf("Deleted body returned: %v", entry)
}
}

0 comments on commit 7061006

Please sign in to comment.