This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 5b496c8ee1e1ae0342cd51596cdd1fd214b13188 Author: Andrea Tarocchi <[email protected]> AuthorDate: Mon Dec 16 16:56:35 2019 +0100 Fixed test failures if .kube/config is missing. --- pkg/cmd/root_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cmd/root_test.go b/pkg/cmd/root_test.go index 50e0293..1bf886b 100644 --- a/pkg/cmd/root_test.go +++ b/pkg/cmd/root_test.go @@ -34,8 +34,10 @@ func kamelTestPostAddCommandInit(rootCmd *cobra.Command) *cobra.Command { } func kamelTestPreAddCommandInit() (RootCmdOptions, *cobra.Command) { + fakeClient, _ := test.NewFakeClient() options := RootCmdOptions{ Context: context.Background(), + _client: fakeClient, } rootCmd := kamelPreAddCommandInit(options) rootCmd.Run = test.EmptyRun
