@@ -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
321322func 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
365369func 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
383390func 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
401411func 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