chore(discovery): disable some file update tests as flaky

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
pull/15915/merge
machine424 4 months ago committed by Ayoub Mrini
parent 95f49dd84b
commit b0227d1f16
  1. 13
      discovery/file/file_test.go

@ -19,6 +19,7 @@ import (
"io"
"os"
"path/filepath"
"runtime"
"sort"
"sync"
"testing"
@ -319,6 +320,9 @@ func valid2Tg(file string) []*targetgroup.Group {
}
func TestInitialUpdate(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212")
}
for _, tc := range []string{
"fixtures/valid.yml",
"fixtures/valid.json",
@ -363,6 +367,9 @@ func TestInvalidFile(t *testing.T) {
}
func TestNoopFileUpdate(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212")
}
t.Parallel()
runner := newTestRunner(t)
@ -381,6 +388,9 @@ func TestNoopFileUpdate(t *testing.T) {
}
func TestFileUpdate(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212")
}
t.Parallel()
runner := newTestRunner(t)
@ -399,6 +409,9 @@ func TestFileUpdate(t *testing.T) {
}
func TestInvalidFileUpdate(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("flaky test, see https://github.com/prometheus/prometheus/issues/16212")
}
t.Parallel()
runner := newTestRunner(t)

Loading…
Cancel
Save