From ceabb6bd9a8c3faca68347c5e8f0a1c6475f3dd6 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 17 Jan 2025 21:14:44 -0800 Subject: [PATCH] http3: fix flaky TestTransportConnectionRedial (#4884) --- http3/transport_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http3/transport_test.go b/http3/transport_test.go index 83c6273a..a2f90378 100644 --- a/http3/transport_test.go +++ b/http3/transport_test.go @@ -283,7 +283,7 @@ func testTransportConnectionRedial(t *testing.T, connClosed bool, roundtripErr, conn := mockquic.NewMockEarlyConnection(mockCtrl) handshakeChan := make(chan struct{}) close(handshakeChan) - conn.EXPECT().HandshakeComplete().Return(handshakeChan).MaxTimes(2) + conn.EXPECT().HandshakeComplete().Return(handshakeChan).AnyTimes() var dialCount int tr := &Transport{ Dial: func(context.Context, string, *tls.Config, *quic.Config) (quic.EarlyConnection, error) {