From a0a4ab4c15a58a9eda65e17a859db32eaa982de8 Mon Sep 17 00:00:00 2001 From: Asim Date: Tue, 10 May 2016 11:23:30 +0100 Subject: [PATCH] Don't throw fatal on EOF --- transport/http_transport_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transport/http_transport_test.go b/transport/http_transport_test.go index 72e882c2..87c1202d 100644 --- a/transport/http_transport_test.go +++ b/transport/http_transport_test.go @@ -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) }