Closed kuchaguangjie closed 1 month ago
This is not testify
issue, this is Golang panic-recover design.
A panic cannot be recovered by a different goroutine.
P.S. Also, look at testifylint#go-require
Duplicate of https://github.com/stretchr/testify/discussions/1617
Thank you @Antonboom, quite correct.
Sub goroutine panic, assert the main goroutine, the test still fail with:
Does that means
assert.Panics()
can't assert a panic from sub goroutine ?