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

Commit da4ddf49 authored by Rahul Arya's avatar Rahul Arya
Browse files

[Pandora] Fix HFP tests (part 1)

Bug: 237447510
Test: none
Change-Id: If25bcd201e8a39f96ef981f5ffb0fd57cb4a6b3f
parent 770cd232
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -21,6 +21,7 @@ from pandora_experimental.host_grpc import Host


import sys
import sys
import threading
import threading
import time


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


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


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


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

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

        return "OK"
        return "OK"


    @assert_description
    @assert_description