mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
fix TestWALSegmentSizeOption for windows. (#482)
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
This commit is contained in:
parent
22e3aeb107
commit
6d489a1004
|
@ -707,7 +707,9 @@ func TestWALSegmentSizeOption(t *testing.T) {
|
|||
testutil.Ok(t, app.Commit())
|
||||
}
|
||||
|
||||
files, err := ioutil.ReadDir(filepath.Join(db.Dir(), "wal"))
|
||||
dbDir := db.Dir()
|
||||
db.Close()
|
||||
files, err := ioutil.ReadDir(filepath.Join(dbDir, "wal"))
|
||||
testutil.Assert(t, len(files) > 1, "current WALSegmentSize should result in more than a single WAL file.")
|
||||
testutil.Ok(t, err)
|
||||
for i, f := range files {
|
||||
|
|
Loading…
Reference in a new issue