From 02b9fcd3321bf2e2e8ed0070bcf56d51fc6bfe06 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 22 Sep 2016 20:47:51 +0900 Subject: [PATCH] integration: Fix test failure with go1.7.1 --- integration-tests/nghttpx_http1_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integration-tests/nghttpx_http1_test.go b/integration-tests/nghttpx_http1_test.go index a57ae90c..db6e1329 100644 --- a/integration-tests/nghttpx_http1_test.go +++ b/integration-tests/nghttpx_http1_test.go @@ -160,8 +160,9 @@ func TestH1H1GracefulShutdown(t *testing.T) { } want := io.EOF - if _, err := st.conn.Read(nil); err == nil || err != want { - t.Errorf("st.conn.Read(): %v; want %v", err, want) + b := make([]byte, 256) + if _, err := st.conn.Read(b); err == nil || err != want { + t.Errorf("st.conn.Read(): %v; want %v, %v", err, want) } }