You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ env GOEXPERIMENT=synctest go test -timeout 2s ./...
panic: test timed out after 2s
running tests:
TestSyncTest (2s)
goroutine 2 [running]:
testing.(*M).startAlarm.func1()
/usr/local/go_versions/current/src/testing/testing.go:2484 +0x308
created by time.goFunc
/usr/local/go_versions/current/src/time/sleep.go:215 +0x38
...
What did you expect to see?
I expect to pass the test, not run infinite time. In this case abort by timeout
The text was updated successfully, but these errors were encountered:
// A goroutine blocked on an I/O operation, such as a read from a network connection,
// is not idle. Tests which operate on a net.Conn or similar type should use an
// in-memory implementation rather than a real network connection.
Go version
go version go1.24rc2 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
What did you expect to see?
I expect to pass the test, not run infinite time. In this case abort by timeout
The text was updated successfully, but these errors were encountered: