Skip to content

Commit b0227d1

Browse files
committed
chore(discovery): disable some file update tests as flaky
Signed-off-by: machine424 <[email protected]>
1 parent 95f49dd commit b0227d1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

discovery/file/file_test.go

+13
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"io"
2020
"os"
2121
"path/filepath"
22+
"runtime"
2223
"sort"
2324
"sync"
2425
"testing"
@@ -319,6 +320,9 @@ func valid2Tg(file string) []*targetgroup.Group {
319320
}
320321

321322
func TestInitialUpdate(t *testing.T) {
323+
if runtime.GOOS == "windows" {
324+
t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212")
325+
}
322326
for _, tc := range []string{
323327
"fixtures/valid.yml",
324328
"fixtures/valid.json",
@@ -363,6 +367,9 @@ func TestInvalidFile(t *testing.T) {
363367
}
364368

365369
func TestNoopFileUpdate(t *testing.T) {
370+
if runtime.GOOS == "windows" {
371+
t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212")
372+
}
366373
t.Parallel()
367374

368375
runner := newTestRunner(t)
@@ -381,6 +388,9 @@ func TestNoopFileUpdate(t *testing.T) {
381388
}
382389

383390
func TestFileUpdate(t *testing.T) {
391+
if runtime.GOOS == "windows" {
392+
t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212")
393+
}
384394
t.Parallel()
385395

386396
runner := newTestRunner(t)
@@ -399,6 +409,9 @@ func TestFileUpdate(t *testing.T) {
399409
}
400410

401411
func TestInvalidFileUpdate(t *testing.T) {
412+
if runtime.GOOS == "windows" {
413+
t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212")
414+
}
402415
t.Parallel()
403416

404417
runner := newTestRunner(t)

0 commit comments

Comments
 (0)