Skip to content

Commit 5f3f142

Browse files
authored
fix MockAdbProcess wait hangs bug (#1012)
1 parent c25a3e5 commit 5f3f142

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

uiautomator2/core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ def output(self) -> bytes:
5050
""" subprocess do not have this property """
5151
return self._output
5252

53-
def wait(self) -> int:
54-
self._event.wait()
55-
return 0
53+
def wait(self) -> bool:
54+
return self._event.wait(timeout=3)
5655

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

0 commit comments

Comments
 (0)