gdt-dev / gdt

Go Declarative Testing
Apache License 2.0
4 stars 2 forks source link

catch innermost spec context timeout #38

Closed jaypipes closed 4 months ago

jaypipes commented 4 months ago

In order to prevent the panic() that occurs if a context timeout cancel() function fires in the Go testing tool, we execute each test spec in its own goroutine and catch the individual cancel() function firing in order to properly output a failed assertion instead of a panic.

Issue #37