Skip to content

Commit 7836034

Browse files
committed
dev: fix tests
1 parent b3f4d6a commit 7836034

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/run_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
"github.com/golangci/golangci-lint/pkg/lint/lintersdb"
2020
)
2121

22-
var root = filepath.Join("..", "...")
23-
var installOnce sync.Once
22+
var root = filepath.Join("..", "...") //nolint:gochecknoglobals
23+
var installOnce sync.Once //nolint:gochecknoglobals
2424

2525
const noIssuesOut = ""
2626

@@ -100,7 +100,7 @@ func runGolangciLint(t *testing.T, args ...string) (string, int) {
100100

101101
func runGolangciLintWithYamlConfig(t *testing.T, cfg string, args ...string) string {
102102
out, ec := runGolangciLintWithYamlConfigWithCode(t, cfg, args...)
103-
assert.Equal(t, exitcodes.Success, ec)
103+
assert.Equal(t, exitcodes.Success, ec, out)
104104

105105
return out
106106
}

0 commit comments

Comments
 (0)