Skip to content

Commit 0a657f7

Browse files
Rename
1 parent c8d067b commit 0a657f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appium/webdriver/appium_service.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def start(self, **kwargs: Any) -> sp.Popen:
103103
if timeout_ms > 0:
104104
server_url = _make_server_url(args)
105105
try:
106-
if not is_service_running(
106+
if not is_service_listening(
107107
server_url,
108108
timeout=timeout_ms / 1000,
109109
custom_validator=self._assert_is_running,
@@ -175,7 +175,7 @@ def is_listening(self) -> bool:
175175

176176
assert self._cmd
177177
try:
178-
return is_service_running(
178+
return is_service_listening(
179179
_make_server_url(self._cmd),
180180
timeout=STATE_CHECK_INTERVAL_MS,
181181
custom_validator=self._assert_is_running,
@@ -188,7 +188,7 @@ def _assert_is_running(self) -> None:
188188
raise AppiumStartupError()
189189

190190

191-
def is_service_running(url: str, timeout: float = 5, custom_validator: Optional[Callable[[], None]] = None) -> bool:
191+
def is_service_listening(url: str, timeout: float = 5, custom_validator: Optional[Callable[[], None]] = None) -> bool:
192192
"""
193193
Check if the service is running
194194

0 commit comments

Comments
 (0)