unit tests: Skip flaky tests on Windows

Some of the unit tests are currently flaky on Windows. This commit
skips them until they are resolved.
This commit is contained in:
Claudiu Belu
2023-02-21 12:48:02 +00:00
parent 64259b43b8
commit 5ba74c81ca
2 changed files with 10 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ package nodelifecycle
import (
"context"
"fmt"
goruntime "runtime"
"strings"
"testing"
"time"
@@ -2759,6 +2760,10 @@ func TestMonitorNodeHealthMarkPodsNotReadyRetry(t *testing.T) {
// NodeController is just responsible for enqueuing the node to tainting queue from which taint manager picks up
// and evicts the pods on the node.
func TestApplyNoExecuteTaints(t *testing.T) {
// TODO: Remove skip once https://github.com/kubernetes/kubernetes/pull/114607 merges.
if goruntime.GOOS == "windows" {
t.Skip("Skipping test on Windows.")
}
fakeNow := metav1.Date(2017, 1, 1, 12, 0, 0, 0, time.UTC)
evictionTimeout := 10 * time.Minute