Skip to content

Commit

Permalink
Return an error if the test client cannot getTracingConfig (#3608)
Browse files Browse the repository at this point in the history
Was leading to errors within the tests themselves of invalid pod
EnvVars (blank) when the config wasn't available.
  • Loading branch information
lberk authored Jul 16, 2020
1 parent 0617857 commit a0a5daf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/lib/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a0a5daf

Please sign in to comment.