Skip to content

Commit 90774bd

Browse files
committed
refactor(test): rename _wait_create() to _wait_for_api_socket()
Make it clear whose creation we are waiting for. Signed-off-by: Patrick Roy <[email protected]>
1 parent 1538710 commit 90774bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/framework/microvm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,14 +694,14 @@ def spawn(
694694
# 1 sec since we are rechecking the existence of the socket 5 times
695695
# and leave 0.2 delay between them.
696696
if "no-api" not in self.jailer.extra_args:
697-
self._wait_create()
697+
self._wait_for_api_socket()
698698
if "config-file" in self.jailer.extra_args and self.iface:
699699
self.wait_for_ssh_up()
700700
if self.log_file and log_level in ("Trace", "Debug", "Info"):
701701
self.check_log_message("Running Firecracker")
702702

703703
@retry(wait=wait_fixed(0.2), stop=stop_after_attempt(5), reraise=True)
704-
def _wait_create(self):
704+
def _wait_for_api_socket(self):
705705
"""Wait until the API socket and chroot folder are available."""
706706
os.stat(self.jailer.api_socket_path())
707707

0 commit comments

Comments
 (0)