Skip to content

Commit

Permalink
Fix test for Go 1.10
Browse files Browse the repository at this point in the history
Fails in Go 1.10 due to golang/go#26627.
Use workaround described at golang/go#26627 (comment)
to fix.
  • Loading branch information
nmiyake committed Dec 30, 2018
1 parent 3d557ba commit fae16b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/errcheck/errcheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestBuildTags(t *testing.T) {
const (
// uses "custom1" build tag and contains 1 unchecked error
testBuildCustom1Tag = `
// +build custom1
`+`// +build custom1
package custom
Expand All @@ -105,7 +105,7 @@ func Print1() {
}`
// uses "custom2" build tag and contains 1 unchecked error
testBuildCustom2Tag = `
// +build custom2
`+`// +build custom2
package custom
Expand Down

0 comments on commit fae16b5

Please sign in to comment.