Skip to content

Commit

Permalink
Fix tests for Go 1.21.1
Browse files Browse the repository at this point in the history
Fixes #11450
  • Loading branch information
bep committed Sep 14, 2023
1 parent 75c0f88 commit 8afb650
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,6 @@ func testSetupFunc() func(env *testscript.Env) error {
goVersion := runtime.Version()

goVersion = strings.TrimPrefix(goVersion, "go")
if !strings.HasSuffix(goVersion, ".0") {
// Strip patch version.
goVersion = goVersion[:strings.LastIndex(goVersion, ".")]
}

keyVals = append(keyVals, "GOVERSION", goVersion)
envhelpers.SetEnvVars(&env.Vars, keyVals...)
Expand Down

0 comments on commit 8afb650

Please sign in to comment.