[go-nuts] Re: how to force tests to run on main C thread?

2018-03-08 Thread Jason E. Aten
Appears that TestMain() was added for this situation: https://github.com/golang/go/issues/8202 http://cs-guy.com/blog/2015/01/test-main/ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails

[go-nuts] Re: how to force tests to run on main C thread?

2018-03-08 Thread Jason E. Aten
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