After upgrading go to 1.26.0 the tests run from the code lens and from the test explorer fail when -race is enabled in the test flag configuration.
VSCode config:
"go.testFlags": [
"-race"
],
test example:
package check
import "testing"
func TestCheck(t *testing.T) {
t.Log("This is a simple test to check the testing setup.")
}
tools version:
go: 1.26.0
dlv: 1.26.0 (rebuild by new compiler)
gopls: 0.21.0
VS Code: 1.109.3
golang.go: 0.52.2
After upgrading go to 1.26.0 the tests run from the code lens and from the test explorer fail when
-raceis enabled in the test flag configuration.VSCode config:
test example:
tools version:
go: 1.26.0
dlv: 1.26.0 (rebuild by new compiler)
gopls: 0.21.0
VS Code: 1.109.3
golang.go: 0.52.2