mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
Merge pull request #115925 from claudiubelu/skip-flaky-tests
unit tests: Skip flaky tests on Windows
This commit is contained in:
commit
8e659d43ec
@ -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
|
||||
|
||||
|
@ -21,6 +21,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
goruntime "runtime"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"testing"
|
||||
@ -121,6 +122,10 @@ func TestNewManagerImplStartProbeMode(t *testing.T) {
|
||||
// making sure that after registration, devices are correctly updated and if a re-registration
|
||||
// happens, we will NOT delete devices; and no orphaned devices left.
|
||||
func TestDevicePluginReRegistration(t *testing.T) {
|
||||
// TODO: Remove skip once https://github.com/kubernetes/kubernetes/pull/115269 merges.
|
||||
if goruntime.GOOS == "windows" {
|
||||
t.Skip("Skipping test on Windows.")
|
||||
}
|
||||
socketDir, socketName, pluginSocketName, err := tmpSocketDir()
|
||||
require.NoError(t, err)
|
||||
defer os.RemoveAll(socketDir)
|
||||
|
Loading…
Reference in New Issue
Block a user