Go

Go

Made by DeepSource

Called testing.T.FailNow or testing.T.SkipNow in a goroutine SCC-SA2002

Bug risk
Major

Calling t.Testing.FailNow or t.Testing.SkipNow in a goroutine isn't allowed.

testing.T.FailNow or testing.T.SkipNow must be called from the goroutine running the test or benchmark function, not from other goroutines created during the test. Calling FailNow does not stop those other goroutines.