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

Loading…
Cancel
Save