Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add snippet client stop timeout #922

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

mhaoli
Copy link
Collaborator

@mhaoli mhaoli commented May 31, 2024

Add a timeout arg to avoid test stucks when there's something wrong happened in the adb stop command execution.


This change is Reviewable

@mhaoli mhaoli self-assigned this May 31, 2024
@mhaoli mhaoli added the bug label May 31, 2024
@mhaoli mhaoli added this to the Mobly Release 1.12.4 milestone May 31, 2024
@xpconanfan xpconanfan self-requested a review May 31, 2024 19:12
@@ -703,7 +706,8 @@ def _stop_server(self):
out = self._adb.shell(
_STOP_CMD.format(
snippet_package=self.package, user=self._get_user_command_string()
)
),
timeout=_STOP_CMD_TIMEOUT_SEC,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need the trailing comma?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pyink will automatically add that trailing comma.

@xpconanfan xpconanfan merged commit 70f5c05 into google:master Jun 3, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants