Skip to content

Commit

Permalink
chart_downloader: fix lint issue.
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
(cherry picked from commit 4c43283)
  • Loading branch information
kaos authored and mattfarina committed Dec 5, 2019
1 parent e1459ac commit 7c22ef9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/downloader/chart_downloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand All @@ -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 {
Expand All @@ -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)
Expand Down

0 comments on commit 7c22ef9

Please sign in to comment.