Ah, I found this question was asked by Gustavo Niemeyer back in 2014... Quoting from the last post of
https://groups.google.com/forum/#!topic/golang-dev/YPjaFoesQzU > rsc > You can't move test execution onto the main goroutine. t.FailNow uses runtime.Goexit. I wonder if there's been any change that would enable this? I'm using a C library that I suspect is sensitive to being tested on the main thread, and I would like to test that assumption. -- 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. For more options, visit https://groups.google.com/d/optout.