Skip to content

add possibility to increase stop service timeout #1027

@LykashevichAndrei

Description

@LykashevichAndrei

appium/webdriver/appium_service.py

please make timeout for self._process.communicate(timeout=5)

def stop(self, timeout=5) -> bool:
        """Stops Appium service if it is running.

        The call will be ignored if the service is not running
        or has been already stopped.

        Returns:
            `True` if the service was running before being stopped
        """
        is_terminated = False
        if self.is_running:
            assert self._process
            self._process.terminate()
            self._process.communicate(timeout=timeout)
            is_terminated = True
        self._process = None
        self._cmd = None
        return is_terminated

as a method param

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions