TUN-2162: Decomplect OpenStream to allow finer-grained timeouts

This commit is contained in:
Nick Vollmar
2019-08-26 11:30:27 -05:00
parent 5e85a8bd16
commit b836cb350a
4 changed files with 60 additions and 63 deletions

View File

@@ -584,8 +584,8 @@ func TestOpenAfterDisconnect(t *testing.T) {
[]Header{{Name: "test-header", Value: "headerValue"}},
nil,
)
if err != ErrConnectionClosed {
t.Fatalf("unexpected error in OpenStream: %s", err)
if err != ErrStreamRequestConnectionClosed && err != ErrResponseHeadersConnectionClosed {
t.Fatalf("case %v: unexpected error in OpenStream: %v", i, err)
}
}
}