Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Oct 3, 2024
1 parent c8d067b commit 0a657f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions appium/webdriver/appium_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def start(self, **kwargs: Any) -> sp.Popen:
if timeout_ms > 0:
server_url = _make_server_url(args)
try:
if not is_service_running(
if not is_service_listening(
server_url,
timeout=timeout_ms / 1000,
custom_validator=self._assert_is_running,
Expand Down Expand Up @@ -175,7 +175,7 @@ def is_listening(self) -> bool:

assert self._cmd
try:
return is_service_running(
return is_service_listening(
_make_server_url(self._cmd),
timeout=STATE_CHECK_INTERVAL_MS,
custom_validator=self._assert_is_running,
Expand All @@ -188,7 +188,7 @@ def _assert_is_running(self) -> None:
raise AppiumStartupError()


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

0 comments on commit 0a657f7

Please sign in to comment.