Browse Source

Merge pull request #14649 from machine424/ftest

fix(tsdb/db_test.go): close the corrupted chunk after creating it to satisfy Windows FS
pull/14689/head
Bryan Boreham 3 months ago committed by GitHub
parent
commit
87dccb1d1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      tsdb/db_test.go

3
tsdb/db_test.go

@ -2690,8 +2690,9 @@ func TestDBReadOnly_Querier_NoAlteration(t *testing.T) {
require.NoError(t, db.Close())
// Simulate a corrupted chunk: without a header.
_, err := os.Create(path.Join(mmappedChunksDir(db.dir), "000001"))
chunk, err := os.Create(path.Join(mmappedChunksDir(db.dir), "000001"))
require.NoError(t, err)
require.NoError(t, chunk.Close())
spinUpQuerierAndCheck(db.dir, t.TempDir(), 1)

Loading…
Cancel
Save