fix: flaky tests

This commit is contained in:
Fernandez Ludovic 2022-08-21 22:52:03 +02:00
parent 37d3aa437a
commit 3aea4ce9ce
2 changed files with 1 additions and 3 deletions

View File

@ -253,13 +253,11 @@ func TestSortedResults(t *testing.T) {
want: strings.Join([]string{
"testdata/sort_results/main.go:15:13: Error return value is not checked (errcheck)",
"testdata/sort_results/main.go:12:5: var `db` is unused (unused)",
"testdata/sort_results/main.go:8:6: func `returnError` is unused (unused)",
}, "\n"),
},
{
opt: "--sort-results=true",
want: strings.Join([]string{
"testdata/sort_results/main.go:8:6: func `returnError` is unused (unused)",
"testdata/sort_results/main.go:12:5: var `db` is unused (unused)",
"testdata/sort_results/main.go:15:13: Error return value is not checked (errcheck)",
}, "\n"),

View File

@ -11,6 +11,6 @@ func returnError() error {
var db *sql.DB
func _() {
func Example() {
returnError()
}