Stop test spew on non-Linux.

Make kube-proxy test not run on non-linux to avoid
error spew.
pull/6/head
Eric Tune 2016-01-19 06:54:38 -08:00
parent 810544633e
commit 0bb716d6b2
1 changed files with 4 additions and 0 deletions

View File

@ -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