forked from quic-go/quic-go
http3: fix flaky TestConnGoAwayFailures (#5252)
This commit is contained in:
@@ -213,6 +213,8 @@ func testConnControlStreamFailures(t *testing.T, data []byte, readErr error, exp
|
||||
conn.handleUnidirectionalStreams(nil)
|
||||
}()
|
||||
|
||||
conn.openRequestStream(context.Background(), nil, nil, true, 1000)
|
||||
|
||||
switch readErr {
|
||||
case nil:
|
||||
_, err = controlStr.Write(data)
|
||||
@@ -227,8 +229,6 @@ func testConnControlStreamFailures(t *testing.T, data []byte, readErr error, exp
|
||||
controlStr.CancelWrite(1337)
|
||||
}
|
||||
|
||||
conn.openRequestStream(context.Background(), nil, nil, true, 1000)
|
||||
|
||||
select {
|
||||
case <-serverConn.Context().Done():
|
||||
require.ErrorIs(t,
|
||||
|
||||
Reference in New Issue
Block a user