Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f526bfe0 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

CertSelfTest: Fix test_l2cap_config_options am: ccfe4de8 am: fde75c20

Change-Id: I954451a269454e9d5a41d16d4095d032c8560a96
parents 8a6e9060 fde75c20
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -222,11 +222,12 @@ class CertSelfTest(GdFacadeOnlyBaseTestClass):
            0xc1d,  # Channel ID
            l2cap_packets.Continuation.END,
            [mtu_opt, fcs_opt])
        request.Serialize()
        request_b_frame = l2cap_packets.BasicFrameBuilder(0x01, request)
        handle = 123
        wrapped = hci_packets.AclPacketBuilder(
            handle,
            hci_packets.PacketBoundaryFlag.FIRST_NON_AUTOMATICALLY_FLUSHABLE,
            hci_packets.BroadcastFlag.POINT_TO_POINT, request)
            hci_packets.BroadcastFlag.POINT_TO_POINT, request_b_frame)
        # Size is ACL (4) + L2CAP (4) + Configure (8) + MTU (4) + FCS (3)
        asserts.assert_true(
            len(wrapped.Serialize()) == 16, "Packet serialized incorrectly")
            len(wrapped.Serialize()) == 23, "Packet serialized incorrectly")