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

Commit b802128e 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
Change-Id: I1050bc767db919889edf14b2d056fb277397d26d
Merged-In: I1050bc767db919889edf14b2d056fb277397d26d
parent 27afd7ea
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
#   limitations under the License.

from cert.gd_base_test import GdBaseTestClass
from cert.truth import assertThat
from datetime import timedelta
from hci.cert.acl_manager_test_lib import AclManagerTestBase


@@ -50,7 +52,7 @@ class AclManagerTest(GdBaseTestClass, AclManagerTestBase):
            cert_acl.send(hci_packets.PacketBoundaryFlag.FIRST_AUTOMATICALLY_FLUSHABLE,
                          hci_packets.BroadcastFlag.ACTIVE_PERIPHERAL_BROADCAST,
                          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,
                          hci_packets.BroadcastFlag.POINT_TO_POINT,