migrate the connection tests away from Ginkgo (#4823)

This commit is contained in:
Marten Seemann
2025-01-06 14:48:11 +08:00
committed by GitHub
parent 9b55fbe0be
commit f41a6a644d
7 changed files with 2781 additions and 3268 deletions

View File

@@ -65,7 +65,7 @@ func getPacketWithPacketType(t *testing.T, connID protocol.ConnectionID, typ pro
PacketNumberLen: protocol.PacketNumberLen2,
}).Append(nil, protocol.Version1)
require.NoError(t, err)
return b
return append(b, bytes.Repeat([]byte{42}, int(length)-2)...)
}
func TestTransportPacketHandling(t *testing.T) {