fix flaky TestConnectionPathValidation (#5030)

This commit is contained in:
Marten Seemann
2025-04-12 11:19:08 +08:00
committed by GitHub
parent c9c2c86516
commit a15ea40aa4

View File

@@ -2988,7 +2988,7 @@ func testConnectionPathValidation(t *testing.T, isNATRebinding bool) {
),
tc.packer.EXPECT().AppendPacket(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).Return(
shortHeaderPacket{}, errNothingToPack,
),
).MaxTimes(1),
)
tc.conn.handlePacket(receivedPacket{
data: make([]byte, 100),