Since synctest runs on a fake clock, doing anything "automatically" with it seems like a bad idea. You very much want to know when you are using it, and most Examples to this point (presumably a sizable set), have no idea about synctest, since it didn't exist when they were written, that would risk breaking alot of things.
Moreover its easy to just write a regular test. I would just write a regular Test func and put the word "Example" in a comment above it. Same result, no? On Friday, September 5, 2025 at 7:19:36 PM UTC+1 Pierre Durand wrote: > Using synctest requires to have access to a *testing.T > This is not available from an example testing function. > > Should we automatically run examples in a synctest time bubble ? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/a088adf2-f4f8-47eb-879b-222714670be5n%40googlegroups.com.