chart_downloader: fix lint issue.

Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
pull/7071/head
Andreas Stenius 5 years ago
parent 0f0aa6b432
commit 4c4328398e
No known key found for this signature in database
GPG Key ID: D2A6F15EE8C2A5CC

@ -87,7 +87,7 @@ func TestResolveChartOpts(t *testing.T) {
}{
{
name: "repo with CA-file",
ref: "testing-ca-file/foo",
ref: "testing-ca-file/foo",
expect: []getter.Option{
getter.WithURL("https://example.com/foo-1.2.3.tgz"),
getter.WithTLSClientConfig("cert", "key", "ca"),
@ -106,11 +106,11 @@ func TestResolveChartOpts(t *testing.T) {
}
// snapshot options
snapshot_opts := c.Options
snapshotOpts := c.Options
for _, tt := range tests {
// reset chart downloader options for each test case
c.Options = snapshot_opts
c.Options = snapshotOpts
expect, err := getter.NewHTTPGetter(tt.expect...)
if err != nil {
@ -128,7 +128,7 @@ func TestResolveChartOpts(t *testing.T) {
append(
c.Options,
getter.WithURL(u.String()),
)...
)...,
)
if err != nil {
t.Errorf("%s: failed to create http client: %s", tt.name, err)

Loading…
Cancel
Save