close tsdb.head in test case (#9580)
Signed-off-by: Xiaochao Dong (@damnever) <the.xcdong@gmail.com>
This commit is contained in:
parent
0c07663b70
commit
c2d1c85857
|
@ -1397,7 +1397,7 @@ func TestWalRepair_DecodingError(t *testing.T) {
|
|||
err = errors.Cause(initErr) // So that we can pick up errors even if wrapped.
|
||||
_, corrErr := err.(*wal.CorruptionErr)
|
||||
require.True(t, corrErr, "reading the wal didn't return corruption error")
|
||||
require.NoError(t, w.Close())
|
||||
require.NoError(t, h.Close()) // Head will close the wal as well.
|
||||
}
|
||||
|
||||
// Open the db to trigger a repair.
|
||||
|
|
Loading…
Reference in New Issue