mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
courier: Don't call testing.T.Fatalf from a goroutine
Calling testing.T.Fatalf from a new goroutine is not supported; since this should be quite exceptional, we just panic instead.
This commit is contained in:
@@ -55,7 +55,7 @@ func fakeServer(t *testing.T, responses map[string]string) (string, *sync.WaitGr
|
||||
|
||||
c, err := l.Accept()
|
||||
if err != nil {
|
||||
t.Fatalf("fake server accept: %v", err)
|
||||
panic(err)
|
||||
}
|
||||
defer c.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user