From b67a46371b39cc1c6e8e714b405318660b5a7dbe Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Fri, 13 Oct 2023 10:03:20 +0200 Subject: [PATCH] misc: handle undhandled error Signed-off-by: Hidde Beydals --- cmd/flux/main_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/flux/main_test.go b/cmd/flux/main_test.go index 37398309..cdddf054 100644 --- a/cmd/flux/main_test.go +++ b/cmd/flux/main_test.go @@ -203,6 +203,9 @@ func NewTestEnvKubeManager(testClusterMode TestClusterMode) (*testEnvKubeManager useExistingCluster := true config, err := clientcmd.BuildConfigFromFlags("", testKubeConfig) + if err != nil { + return nil, err + } testEnv := &envtest.Environment{ UseExistingCluster: &useExistingCluster, Config: config,