integration: Fix test failure with go1.7.1

This commit is contained in:
Tatsuhiro Tsujikawa 2016-09-22 20:47:51 +09:00
parent 231d739b10
commit 02b9fcd332
1 changed files with 3 additions and 2 deletions

View File

@ -160,8 +160,9 @@ func TestH1H1GracefulShutdown(t *testing.T) {
} }
want := io.EOF want := io.EOF
if _, err := st.conn.Read(nil); err == nil || err != want { b := make([]byte, 256)
t.Errorf("st.conn.Read(): %v; want %v", err, want) if _, err := st.conn.Read(b); err == nil || err != want {
t.Errorf("st.conn.Read(): %v; want %v, %v", err, want)
} }
} }