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