mirror of
https://github.com/prometheus/prometheus.git
synced 2025-09-22 06:11:00 +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"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
"sort"
|
"sort"
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
@ -319,6 +320,9 @@ func valid2Tg(file string) []*targetgroup.Group {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestInitialUpdate(t *testing.T) {
|
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{
|
for _, tc := range []string{
|
||||||
"fixtures/valid.yml",
|
"fixtures/valid.yml",
|
||||||
"fixtures/valid.json",
|
"fixtures/valid.json",
|
||||||
@ -363,6 +367,9 @@ func TestInvalidFile(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestNoopFileUpdate(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()
|
t.Parallel()
|
||||||
|
|
||||||
runner := newTestRunner(t)
|
runner := newTestRunner(t)
|
||||||
@ -381,6 +388,9 @@ func TestNoopFileUpdate(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestFileUpdate(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()
|
t.Parallel()
|
||||||
|
|
||||||
runner := newTestRunner(t)
|
runner := newTestRunner(t)
|
||||||
@ -399,6 +409,9 @@ func TestFileUpdate(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestInvalidFileUpdate(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()
|
t.Parallel()
|
||||||
|
|
||||||
runner := newTestRunner(t)
|
runner := newTestRunner(t)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user