From 7955d428dee1437b745b0d44466e39389617abee Mon Sep 17 00:00:00 2001 From: "Timothy St. Clair" Date: Wed, 30 Sep 2015 20:33:34 -0500 Subject: [PATCH] Fix for unit test failures 'unexpected error: user: Current not implemented on linux/amd64' running on Fedora 20 'go version go1.4.2 linux/amd64' --- pkg/kubectl/cmd/util/factory_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/kubectl/cmd/util/factory_test.go b/pkg/kubectl/cmd/util/factory_test.go index beeb73d5939..41af6303ea8 100644 --- a/pkg/kubectl/cmd/util/factory_test.go +++ b/pkg/kubectl/cmd/util/factory_test.go @@ -305,7 +305,11 @@ func TestValidateCachesSchema(t *testing.T) { } func TestSubstitueUser(t *testing.T) { - usr, _ := user.Current() + usr, err := user.Current() + if err != nil { + t.Logf("SKIPPING TEST: unexpected error: %v", err) + return + } tests := []struct { input string expected string