diff --git a/cmux_test.go b/cmux_test.go index 17945c8..5331519 100644 --- a/cmux_test.go +++ b/cmux_test.go @@ -42,7 +42,7 @@ const ( ) func safeServe(errCh chan<- error, muxl CMux) { - if err := muxl.Serve(); !strings.Contains(err.Error(), "use of closed network connection") { + if err := muxl.Serve(); !strings.Contains(err.Error(), "use of closed") { errCh <- err } }