diff --git a/tests/integration_tests/functional/test_logging.py b/tests/integration_tests/functional/test_logging.py index c26f947686af..e7b0886ffe22 100644 --- a/tests/integration_tests/functional/test_logging.py +++ b/tests/integration_tests/functional/test_logging.py @@ -8,6 +8,7 @@ import datetime import os +import time import host_tools.logging as log_tools @@ -166,6 +167,10 @@ def test_api_requests_logs(test_microvm_with_api): show_level=True, show_log_origin=True, ) + + # While the API thread is setting up + time.sleep(5) + # only works if log level is Debug microvm.time_api_requests = False assert microvm.api_session.is_status_no_content(response.status_code)