mirror of
https://github.com/prometheus/prometheus.git
synced 2025-09-21 22:01:01 +02:00
chore(discovery): disable some file update tests as flaky
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
This commit is contained in:
parent
95f49dd84b
commit
b0227d1f16
@ -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…
x
Reference in New Issue
Block a user