Skip to content

Commit b441665

Browse files
JonathanWoollett-LightJonathan Woollett-Light
authored andcommitted
fix: Update check_message_log
Updates the assertion within `check_message_log` to give a more descriptive failure message. Signed-off-by: Jonathan Woollett-Light <[email protected]>
1 parent ebf410e commit b441665

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/framework/microvm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,9 @@ def _wait_create(self):
554554
@retry(delay=0.1, tries=5)
555555
def check_log_message(self, message):
556556
"""Wait until `message` appears in logging output."""
557-
assert message in self.log_data
557+
assert (
558+
message in self.log_data
559+
), f'Message ("{message}") not found in log data ("{self.log_data}").'
558560

559561
@retry(delay=0.1, tries=5)
560562
def check_any_log_message(self, messages):

0 commit comments

Comments
 (0)