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

Commit 73c6d95f authored by Thomas Girardier's avatar Thomas Girardier Committed by Gerrit Code Review
Browse files

Merge "mmi2grpc: Don't reconnect phone on reset"

parents 4205735f 2928def7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -29,7 +29,6 @@ from mmi2grpc.hfp import HFPProxy
from mmi2grpc.hogp import HOGPProxy
from mmi2grpc.sdp import SDPProxy
from mmi2grpc.sm import SMProxy
from mmi2grpc._rootcanal import RootCanal
from mmi2grpc._helpers import format_proxy

from pandora.host_grpc import Host
@@ -70,7 +69,6 @@ class IUT:
        """Resets the IUT when starting a PTS test."""
        # Note: we don't keep a single gRPC channel instance in the IUT class
        # because reset is allowed to close the gRPC server.
        RootCanal().reconnect_phone()
        with grpc.insecure_channel(f'localhost:{self.port}') as channel:
            self._retry(Host(channel).HardReset)(wait_for_ready=True)