Skip to content

Commit c9b0c65

Browse files
adonovangopherbot
authored andcommitted
gopls/internal/analysis/fillreturns: skip test if gotypesalias=1
It changes (improves) the behavior of the test; we will reenable it once the default has changed. Updates golang/go#65294 Change-Id: I716da405a9f0c03c303c4c0be8b738dd7c5ebdcd Reviewed-on: https://go-review.googlesource.com/c/tools/+/576137 Reviewed-by: Tim King <[email protected]> Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent c623a28 commit c9b0c65

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gopls/internal/analysis/fillreturns/fillreturns_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@
55
package fillreturns_test
66

77
import (
8+
"os"
9+
"strings"
810
"testing"
911

1012
"golang.org/x/tools/go/analysis/analysistest"
1113
"golang.org/x/tools/gopls/internal/analysis/fillreturns"
1214
)
1315

1416
func Test(t *testing.T) {
17+
// TODO(golang/go#65294): delete once gotypesalias=1 is the default.
18+
if strings.Contains(os.Getenv("GODEBUG"), "gotypesalias=1") {
19+
t.Skip("skipping due to gotypesalias=1, which changes (improves) the result; reenable and update the expectations once it is the default")
20+
}
21+
1522
testdata := analysistest.TestData()
1623
analysistest.RunWithSuggestedFixes(t, testdata, fillreturns.Analyzer, "a", "typeparams")
1724
}

0 commit comments

Comments
 (0)