From fae16b5533ed16f0061038fccfeaec118363db7b Mon Sep 17 00:00:00 2001 From: Nick Miyake Date: Sun, 30 Dec 2018 09:22:02 -0800 Subject: [PATCH] Fix test for Go 1.10 Fails in Go 1.10 due to https://github.com/golang/go/issues/26627. Use workaround described at https://github.com/golang/go/issues/26627#issuecomment-408416203 to fix. --- internal/errcheck/errcheck_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/errcheck/errcheck_test.go b/internal/errcheck/errcheck_test.go index 8394684..ac3e478 100644 --- a/internal/errcheck/errcheck_test.go +++ b/internal/errcheck/errcheck_test.go @@ -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 @@ -105,7 +105,7 @@ func Print1() { }` // uses "custom2" build tag and contains 1 unchecked error testBuildCustom2Tag = ` -// +build custom2 +`+`// +build custom2 package custom