Skip to content

Commit

Permalink
treefmt: fix linter issues after golangci-lint update
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Nov 19, 2024
1 parent 90638db commit ba37169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/genpolicy/genpolicy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestRunner(t *testing.T) {

yamlPath, err := os.ReadFile(yamlPathFile)
require.NoError(err)
assert.Equal(expectedYAMLPath, string(yamlPath))
assert.YAMLEq(expectedYAMLPath, string(yamlPath))

require.NoError(r.Teardown())
}
4 changes: 2 additions & 2 deletions e2e/internal/contrasttest/contrasttest.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ func (ct *ContrastTest) Init(t *testing.T, resources []any) {
require := require.New(t)

f, err := os.Open(ct.ImageReplacementsFile)
require.NoError(err, fmt.Sprintf("Image replacements %s file not found", ct.ImageReplacementsFile))
require.NoError(err, "Image replacements %s file not found", ct.ImageReplacementsFile)
ct.ImageReplacements, err = kuberesource.ImageReplacementsFromFile(f)
require.NoError(err, fmt.Sprintf("Parsing image replacements from %s failed", ct.ImageReplacementsFile))
require.NoError(err, "Parsing image replacements from %s failed", ct.ImageReplacementsFile)

// If available, acquire a fifo ticket to synchronize cluster access with
// other running e2e tests. We request a ticket and wait for our turn.
Expand Down

0 comments on commit ba37169

Please sign in to comment.