From 02a98867b27b574a3034add63bd5c6bdf13ace1e Mon Sep 17 00:00:00 2001 From: Lukas Berk Date: Thu, 16 Jul 2020 11:18:57 -0400 Subject: [PATCH] Return an error if the test client cannot getTracingConfig Was leading to errors within the tests themselves of invalid pod EnvVars (blank) when the config wasn't available. --- test/lib/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/lib/client.go b/test/lib/client.go index 43290fabf58..f338a951708 100644 --- a/test/lib/client.go +++ b/test/lib/client.go @@ -91,6 +91,9 @@ func NewClient(configPath string, clusterName string, namespace string, t *testi client.Tracker = NewTracker(t, client.Dynamic) client.tracingEnv, err = getTracingConfig(client.Kube.Kube) + if err != nil { + return nil, err + } return client, nil }