forked from quic-go/quic-go
fix flaky TestConnectionPathValidation (#5175)
This commit is contained in:
@@ -2948,7 +2948,7 @@ func testConnectionPathValidation(t *testing.T, isNATRebinding bool) {
|
|||||||
calls = append(calls,
|
calls = append(calls,
|
||||||
tc.packer.EXPECT().AppendPacket(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).Return(
|
tc.packer.EXPECT().AppendPacket(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).Return(
|
||||||
shortHeaderPacket{}, errNothingToPack,
|
shortHeaderPacket{}, errNothingToPack,
|
||||||
),
|
).MaxTimes(1),
|
||||||
)
|
)
|
||||||
gomock.InOrder(calls...)
|
gomock.InOrder(calls...)
|
||||||
require.Equal(t, tc.remoteAddr, tc.conn.RemoteAddr())
|
require.Equal(t, tc.remoteAddr, tc.conn.RemoteAddr())
|
||||||
|
|||||||
Reference in New Issue
Block a user