Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hailin0 committed Aug 8, 2023
1 parent 46c4525 commit a14fcca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions banyand/tsdb/buffer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ var _ = Describe("Buffer", func() {
true,
&path)
Expect(err).ToNot(HaveOccurred())
defer buffer.Close()

// Write buffer & wal
var wg sync.WaitGroup
Expand Down Expand Up @@ -286,6 +287,7 @@ var _ = Describe("Buffer", func() {
true,
&path)
Expect(err).ToNot(HaveOccurred())
defer buffer.Close()

// Check buffer was recovered from wal
for i := 0; i < numShards; i++ {
Expand All @@ -296,8 +298,6 @@ var _ = Describe("Buffer", func() {
Expect(exist).To(BeTrue())
Expect(bytes.Equal(expectValue, value)).To(BeTrue())
}

buffer.Close()
})
})
})

0 comments on commit a14fcca

Please sign in to comment.