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

View File

@ -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)
}
}