Skip to content

Conversation

@jaypipes
Copy link
Member

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

@jaypipes jaypipes force-pushed the panic-at-the-disco branch from 9a3d138 to 3b618f6 Compare June 26, 2024 11:35
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

Signed-off-by: Jay Pipes <jaypipes@gmail.com>
@jaypipes jaypipes force-pushed the panic-at-the-disco branch from 3b618f6 to 4cff4c5 Compare June 26, 2024 12:00
@jaypipes jaypipes merged commit 6acae43 into gdt-dev:main Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant