Skip to content

Commit

Permalink
fix(storagetest): close store at the end of batched store test (#4216)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci authored Jul 11, 2023
1 parent f170e38 commit 990df05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/storage/storagetest/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,11 @@ func TestBatchedStore(t *testing.T, bs BatchedStore) {
t.Fatalf("Commit(): want error: %v; have error: %v", want, have)
}
})

t.Run("close", func(t *testing.T) {
err := bs.Close()
if err != nil {
t.Fatalf("failed closing: %v", err)
}
})
}

0 comments on commit 990df05

Please sign in to comment.