From 109faee7362ca3f722244b131bffb38a0ac612e6 Mon Sep 17 00:00:00 2001 From: Chen Yudong Date: Wed, 15 Feb 2023 15:42:58 +0800 Subject: [PATCH] test: fix test_examples_protocol_https_server_simple --- examples/protocols/https_server/simple/example_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/protocols/https_server/simple/example_test.py b/examples/protocols/https_server/simple/example_test.py index 7f75b7895d..31330bdba8 100644 --- a/examples/protocols/https_server/simple/example_test.py +++ b/examples/protocols/https_server/simple/example_test.py @@ -164,11 +164,11 @@ def test_examples_protocol_https_server_simple(env, extra_data): # type: (tiny_ # start test dut1.start_app() # Parse IP address and port of the server - dut1.expect(re.compile(r'Starting server')) - got_port = dut1.expect(re.compile(r'Server listening on port (\d+)'), timeout=30)[0] + dut1.expect(re.compile(r'Starting server'), timeout=60) + got_port = dut1.expect(re.compile(r'Server listening on port (\d+)[^\d]'), timeout=30)[0] Utility.console_log('Waiting to connect with AP') - got_ip = dut1.expect(re.compile(r'IPv4 address: (\d+\.\d+\.\d+\.\d+)'), timeout=30)[0] + got_ip = dut1.expect(re.compile(r'IPv4 address: (\d+\.\d+\.\d+\.\d+)[^\d]'), timeout=30)[0] # Expected logs Utility.console_log('Got IP : ' + got_ip)