Skip to content

Commit 4975ec0

Browse files
committed
test: Increases duration of delay for log message checker
check_log_message() and check_any_log_message() are used to check if a given message is included in firecracker's log. At the moment, host kernel 6.1 has larger boot time than other kernel versions, resulting in delay of printing the message. To suppress spurious failures, increases the duration between retries. Signed-off-by: Takahiro Itazuri <itazur@amazon.com>
1 parent 5c9e2c0 commit 4975ec0

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
@@ -549,14 +549,14 @@ def _wait_create(self):
549549
"""Wait until the API socket and chroot folder are available."""
550550
os.stat(self.jailer.api_socket_path())
551551

552-
@retry(delay=0.1, tries=5)
552+
@retry(delay=0.2, tries=5)
553553
def check_log_message(self, message):
554554
"""Wait until `message` appears in logging output."""
555555
assert (
556556
message in self.log_data
557557
), f'Message ("{message}") not found in log data ("{self.log_data}").'
558558

559-
@retry(delay=0.1, tries=5)
559+
@retry(delay=0.2, tries=5)
560560
def check_any_log_message(self, messages):
561561
"""Wait until any message in `messages` appears in logging output."""
562562
for message in messages:

0 commit comments

Comments
 (0)