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

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

CertSelfTest: Fix test_l2cap_config_options am: ccfe4de8

Change-Id: I06623d544b552d5cc2ff5a70dce8397de8a98ba6
parents 23015ade ccfe4de8
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")