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