Don't throw fatal on EOF

This commit is contained in:
Asim 2016-05-10 11:23:30 +01:00
parent 9d629b5365
commit a0a4ab4c15

View File

@ -1,6 +1,7 @@
package transport package transport
import ( import (
"io"
"strings" "strings"
"testing" "testing"
) )
@ -121,6 +122,9 @@ func TestHTTPTransportError(t *testing.T) {
for { for {
var m Message var m Message
if err := sock.Recv(&m); err != nil { if err := sock.Recv(&m); err != nil {
if err == io.EOF {
return
}
t.Fatal(err) t.Fatal(err)
} }