diff --git a/test/linters_test.go b/test/linters_test.go index ec216647..2761fcc1 100644 --- a/test/linters_test.go +++ b/test/linters_test.go @@ -9,8 +9,6 @@ import ( "strings" "testing" - "github.com/golangci/golangci-lint/pkg/exitcodes" - "github.com/golangci/golangci-lint/test/testshared" assert "github.com/stretchr/testify/require" @@ -20,9 +18,12 @@ import ( func runGoErrchk(c *exec.Cmd, files []string, t *testing.T) { output, err := c.CombinedOutput() - exitErr, ok := err.(*exec.ExitError) + assert.Error(t, err) + _, ok := err.(*exec.ExitError) assert.True(t, ok) - assert.Equal(t, exitcodes.IssuesFound, exitErr.ExitCode()) + + // TODO: uncomment after deprecating go1.11 + // assert.Equal(t, exitcodes.IssuesFound, exitErr.ExitCode()) fullshort := make([]string, 0, len(files)*2) for _, f := range files {