the goroutine calls T.Fatal, which must be called in the same goroutine as the test
592 var wg sync.WaitGroup
593 for i := 0; i < testCount; i++ {
594 wg.Add(1)
595 go func() { 596 defer wg.Done()
597 f, err := os.Open("sample-playlists/media-playlist-large.m3u8")
598 if err != nil {
the goroutine calls T.Fatalf, which must be called in the same goroutine as the test
592 var wg sync.WaitGroup
593 for i := 0; i < testCount; i++ {
594 wg.Add(1)
595 go func() { 596 defer wg.Done()
597 f, err := os.Open("sample-playlists/media-playlist-large.m3u8")
598 if err != nil {
Description
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.