Skip to content

Commit

Permalink
chore: go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Oct 19, 2023
1 parent 0c54936 commit adb5627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cli/content_blocking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ func TestContentBlocking(t *testing.T) {
cliTestName := fmt.Sprintf("CLI '%s' denies %s", strings.Join(cmd, " "), testCase.name)
t.Run(cliTestName, func(t *testing.T) {
t.Parallel()
cmd := append(cmd, testCase.path)
errMsg := node.RunIPFS(cmd...).Stderr.Trimmed()
args := append(cmd, testCase.path)

Check failure on line 151 in test/cli/content_blocking_test.go

View workflow job for this annotation

GitHub Actions / go-lint

loopclosure: loop variable cmd captured by func literal (govet)

Check failure on line 151 in test/cli/content_blocking_test.go

View workflow job for this annotation

GitHub Actions / go-check

loop variable cmd captured by func literal
errMsg := node.RunIPFS(args...).Stderr.Trimmed()
if !strings.Contains(errMsg, expectedMsg) {
t.Errorf("Expected STDERR error message %q, but got: %q", expectedMsg, errMsg)
}
Expand Down

0 comments on commit adb5627

Please sign in to comment.