2021-12-04 16:42:11 +00:00

19 lines
233 B
Go

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")
}