Detect Incorrect Usages of t/b.Fatal* Calls in Goroutines

Find if tests or benchmarks are using t/b.Fatal* calls inside goroutines incorrectly

Calling *t/b.Fatal** methods from a goroutine is not advised as it may produce unexpected behavior.

You don't need to do anything to run this inspection as it's enabled by default.

Open your tests or benchmarks and see if it catches any issues.


Related Resources

How to Use Mock Testing in Go
How to Use Mock Testing in Go
Mocking & Rocking - Power Up Your Go Testing.
Common Mistakes to Avoid When Handling Errors in Go
Common Mistakes to Avoid When Handling Errors in Go
Write Clean Code - Common Error Handling Mistakes to Avoid.
Conclusion
Conclusion
Putting Your Knowledge into Practice.