mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Stop test spew on non-Linux.
Make kube-proxy test not run on non-linux to avoid error spew.
This commit is contained in:
parent
810544633e
commit
0bb716d6b2
@ -18,6 +18,7 @@ package app
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
@ -45,6 +46,9 @@ func (fake *fakeIptablesVersioner) GetVersion() (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test_getProxyMode(t *testing.T) {
|
func Test_getProxyMode(t *testing.T) {
|
||||||
|
if runtime.GOOS != "linux" {
|
||||||
|
t.Skip("skipping on non-Linux")
|
||||||
|
}
|
||||||
var cases = []struct {
|
var cases = []struct {
|
||||||
flag string
|
flag string
|
||||||
annotationKey string
|
annotationKey string
|
||||||
|
Loading…
Reference in New Issue
Block a user