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

Commit b9c0c0b5 authored by Rahul Arya's avatar Rahul Arya Committed by Charlie Boutier
Browse files

[Pandora] Fix HFP tests (part 1)

Bug: 245578454
Test: none
Ignore-AOSP-First: Cherry-pick from AOSP
Merged-In: If25bcd201e8a39f96ef981f5ffb0fd57cb4a6b3f
Change-Id: If25bcd201e8a39f96ef981f5ffb0fd57cb4a6b3f
parent b66e211e
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ from pandora_experimental.host_grpc import Host

import sys
import threading
import time

# Standard time to wait before asking for waitConnection
WAIT_DELAY_BEFORE_CONNECTION = 2
@@ -65,7 +66,7 @@ class HFPProxy(ProfileProxy):
        (IUT), then click Ok.
        """

        self.host.DeletePairing(address=pts_addr)
        self.security.DeletePairing(address=pts_addr)
        return "OK"

    @assert_description
@@ -106,7 +107,12 @@ class HFPProxy(ProfileProxy):
        Implementation Under Test (IUT).
        """

        def go():
            time.sleep(2)
            self.hfp.DisableSlc(connection=self.connection)

        threading.Thread(target=go).start()

        return "OK"

    @assert_description