@@ -19,6 +19,7 @@ import (
19
19
"io"
20
20
"os"
21
21
"path/filepath"
22
+ "runtime"
22
23
"sort"
23
24
"sync"
24
25
"testing"
@@ -319,6 +320,9 @@ func valid2Tg(file string) []*targetgroup.Group {
319
320
}
320
321
321
322
func TestInitialUpdate (t * testing.T ) {
323
+ if runtime .GOOS == "windows" {
324
+ t .Skip ("flaky test, see https://github.com/prometheus/prometheus/issues/16212" )
325
+ }
322
326
for _ , tc := range []string {
323
327
"fixtures/valid.yml" ,
324
328
"fixtures/valid.json" ,
@@ -363,6 +367,9 @@ func TestInvalidFile(t *testing.T) {
363
367
}
364
368
365
369
func TestNoopFileUpdate (t * testing.T ) {
370
+ if runtime .GOOS == "windows" {
371
+ t .Skip ("flaky test, see https://github.com/prometheus/prometheus/issues/16212" )
372
+ }
366
373
t .Parallel ()
367
374
368
375
runner := newTestRunner (t )
@@ -381,6 +388,9 @@ func TestNoopFileUpdate(t *testing.T) {
381
388
}
382
389
383
390
func TestFileUpdate (t * testing.T ) {
391
+ if runtime .GOOS == "windows" {
392
+ t .Skip ("flaky test, see https://github.com/prometheus/prometheus/issues/16212" )
393
+ }
384
394
t .Parallel ()
385
395
386
396
runner := newTestRunner (t )
@@ -399,6 +409,9 @@ func TestFileUpdate(t *testing.T) {
399
409
}
400
410
401
411
func TestInvalidFileUpdate (t * testing.T ) {
412
+ if runtime .GOOS == "windows" {
413
+ t .Skip ("flaky test, see https://github.com/prometheus/prometheus/issues/16212" )
414
+ }
402
415
t .Parallel ()
403
416
404
417
runner := newTestRunner (t )
0 commit comments