From 3dcd9f9ffe704b31188d3fb5c75de0fa19405f3a Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Wed, 25 Sep 2024 11:22:17 +0200 Subject: [PATCH] Add logs to test_nginx_luci_forwarding_access() --- test/tests/openwrt_docker_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests/openwrt_docker_test.py b/test/tests/openwrt_docker_test.py index 40fe8a5..d11be21 100644 --- a/test/tests/openwrt_docker_test.py +++ b/test/tests/openwrt_docker_test.py @@ -302,10 +302,10 @@ def test_nginx_luci_forwarding_access(docker_services, parameter): if parameter[1] == 'true': try: - time.sleep(10) # Give OpenWrt some extra time to boot up finally response = requests.get("https://localhost:9000", verify=False) assert ('LuCI - Lua Configuration Interface' in response.content.decode()) == True - except Exception as excinfo: + except Exception as excinfo: + print(get_logs()) pytest.fail(f"Unexpected exception raised: {excinfo}") if parameter[1] == 'false':