Skip to content

Commit

Permalink
fix MockAdbProcess wait hangs bug (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue authored Jul 23, 2024
1 parent c25a3e5 commit 5f3f142
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions uiautomator2/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ def output(self) -> bytes:
""" subprocess do not have this property """
return self._output

def wait(self) -> int:
self._event.wait()
return 0
def wait(self) -> bool:
return self._event.wait(timeout=3)

def pool(self) -> Optional[int]:
if self._event.is_set():
Expand Down

0 comments on commit 5f3f142

Please sign in to comment.