File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 9
9
"strings"
10
10
"testing"
11
11
12
- "github.com/golangci/golangci-lint/pkg/exitcodes"
13
-
14
12
"github.com/golangci/golangci-lint/test/testshared"
15
13
16
14
assert "github.com/stretchr/testify/require"
@@ -20,9 +18,12 @@ import (
20
18
21
19
func runGoErrchk (c * exec.Cmd , files []string , t * testing.T ) {
22
20
output , err := c .CombinedOutput ()
23
- exitErr , ok := err .(* exec.ExitError )
21
+ assert .Error (t , err )
22
+ _ , ok := err .(* exec.ExitError )
24
23
assert .True (t , ok )
25
- assert .Equal (t , exitcodes .IssuesFound , exitErr .ExitCode ())
24
+
25
+ // TODO: uncomment after deprecating go1.11
26
+ // assert.Equal(t, exitcodes.IssuesFound, exitErr.ExitCode())
26
27
27
28
fullshort := make ([]string , 0 , len (files )* 2 )
28
29
for _ , f := range files {
You can’t perform that action at this time.
0 commit comments