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
I was testing the new experimental package synctest with an adaptation of the code from https://danp.net/posts/synctest-experiment/ and observed that the test runs forever.
And I noticed that the commented code runs correctly (runs fast).
Go version
1.24rc1
Output of
go env
in your module/workspace:What did you do?
I was testing the new experimental package synctest with an adaptation of the code from https://danp.net/posts/synctest-experiment/ and observed that the test runs forever.
And I noticed that the commented code runs correctly (runs fast).
My code:
GOEXPERIMENT=synctest go test -v .
What did you see happen?
The code provided runs forever or at least take too long.
What did you expect to see?
I expected to see the test complete in a reasonable time and I expected that
time.NewTicker()
to be equivalent totime.Tick()
in the provided context.The text was updated successfully, but these errors were encountered: