2
0
mirror of https://github.com/soheilhy/cmux.git synced 2024-09-19 18:45:48 +08:00

Merge pull request #43 from soheilhy/dev/go18

Fix tests for Go 1.8+
This commit is contained in:
Soheil Hassas Yeganeh 2017-03-13 10:17:15 -04:00 committed by GitHub
commit b6ec57c1a4
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ go:
- 1.5
- 1.6
- 1.7
- 1.8
- tip
matrix:

View File

@ -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
}
}