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

Commit 0b03de40 authored by Myles Watson's avatar Myles Watson
Browse files

AclManager: Add a timeout in the broadcast test

No need to wait for 3 seconds, the packet should be much
faster than that.

Bug: 199899668
Test: cert/run
Ignore-AOSP-First: Only in internal
Change-Id: I1050bc767db919889edf14b2d056fb277397d26d
parent ced3b0f3
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@
from bluetooth_packets_python3 import hci_packets
from bluetooth_packets_python3 import hci_packets
from cert.gd_base_test import GdBaseTestClass
from cert.gd_base_test import GdBaseTestClass
from cert.truth import assertThat
from cert.truth import assertThat
from datetime import timedelta
from hci.cert.acl_manager_test_lib import AclManagerTestBase
from hci.cert.acl_manager_test_lib import AclManagerTestBase
from neighbor.facade import facade_pb2 as neighbor_facade
from neighbor.facade import facade_pb2 as neighbor_facade


@@ -53,7 +54,7 @@ class AclManagerTest(GdBaseTestClass, AclManagerTestBase):
            cert_acl.send(hci_packets.PacketBoundaryFlag.FIRST_AUTOMATICALLY_FLUSHABLE,
            cert_acl.send(hci_packets.PacketBoundaryFlag.FIRST_AUTOMATICALLY_FLUSHABLE,
                          hci_packets.BroadcastFlag.ACTIVE_PERIPHERAL_BROADCAST,
                          hci_packets.BroadcastFlag.ACTIVE_PERIPHERAL_BROADCAST,
                          b'\x26\x00\x07\x00This is a Broadcast from the Cert')
                          b'\x26\x00\x07\x00This is a Broadcast from the Cert')
            assertThat(dut_acl).emitsNone()
            assertThat(dut_acl).emitsNone(timeout=timedelta(seconds=1))


            cert_acl.send(hci_packets.PacketBoundaryFlag.FIRST_AUTOMATICALLY_FLUSHABLE,
            cert_acl.send(hci_packets.PacketBoundaryFlag.FIRST_AUTOMATICALLY_FLUSHABLE,
                          hci_packets.BroadcastFlag.POINT_TO_POINT,
                          hci_packets.BroadcastFlag.POINT_TO_POINT,