2
0
mirror of https://github.com/soheilhy/cmux.git synced 2024-11-10 03:31:52 +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.5
- 1.6 - 1.6
- 1.7 - 1.7
- 1.8
- tip - tip
matrix: matrix:

View File

@ -42,7 +42,7 @@ const (
) )
func safeServe(errCh chan<- error, muxl CMux) { 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 errCh <- err
} }
} }