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

Commit c0d23675 authored by David Duarte's avatar David Duarte Committed by Thomas Girardier
Browse files

mmi2grpc: Don't reconnect phone on reset

This is a partial revert of d5a38c8d

We don't want and don't need to reconnect the phone on each reset.
Furthermore this is breaking execution of PTS-bot tests with
the error

Bug: 245578454
Test: Test: TreeHugger
Ignore-AOSP-First: Cherry-pick from aosp
Merged-In: Icf123f8a77cde4e6bc31a02a9582d3f1f63815ae
Change-Id: Icf123f8a77cde4e6bc31a02a9582d3f1f63815ae
parent 06436a43
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -30,7 +30,6 @@ from mmi2grpc.hid import HIDProxy
from mmi2grpc.hogp import HOGPProxy
from mmi2grpc.hogp import HOGPProxy
from mmi2grpc.sdp import SDPProxy
from mmi2grpc.sdp import SDPProxy
from mmi2grpc.sm import SMProxy
from mmi2grpc.sm import SMProxy
from mmi2grpc._rootcanal import RootCanal
from mmi2grpc._helpers import format_proxy
from mmi2grpc._helpers import format_proxy
from mmi2grpc._rootcanal import RootCanal
from mmi2grpc._rootcanal import RootCanal


@@ -77,7 +76,6 @@ class IUT:


        # Note: we don't keep a single gRPC channel instance in the IUT class
        # Note: we don't keep a single gRPC channel instance in the IUT class
        # because reset is allowed to close the gRPC server.
        # because reset is allowed to close the gRPC server.
        RootCanal().reconnect_phone()
        with grpc.insecure_channel(f'localhost:{self.port}') as channel:
        with grpc.insecure_channel(f'localhost:{self.port}') as channel:
            self._retry(Host(channel).HardReset)(wait_for_ready=True)
            self._retry(Host(channel).HardReset)(wait_for_ready=True)