19 lines
233 B
Go
Raw Normal View History

2021-11-22 16:05:02 +00:00
package xsync
import (
"testing"
"nhooyr.io/websocket/internal/test/assert"
)
func TestGoRecover(t *testing.T) {
t.Parallel()
errs := Go(func() error {
panic("anmol")
})
err := <-errs
assert.Contains(t, err, "anmol")
}