fix flaky TestConnectionPathValidation (#5175)

This commit is contained in:
Marten Seemann
2025-05-31 12:02:30 +08:00
committed by GitHub
parent 06ee16ee67
commit c00a673d98

View File

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