Suppose I have the following test file using the testify/assert framework (to be run with "go test"):

Regardless of assert function's implementation details, shouldn't the output always be:
inside main test goroutine
inside dummyfunc

But what I'm getting is:
inside dummyfunc
inside main test goroutine

Maybe there's something I don't understand about defer. Someone please enlighten me.

Thanks all

go version go1.7.1 linux/amd64

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 
For more options, visit

Reply via email to