Skip to content

Commit 3d73d41

Browse files
committed
tests: Increase wait_for_connect timeout
Change timeout to 4 mins. Signed-off-by: Jorgen Kvalvaag <jorgen.kvalvaag@nordicsemi.no>
1 parent 59fd5bb commit 3d73d41

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/on_target/tests/test_functional/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_config(dut_cloud, hex_file):
2525
dut_cloud.uart.xfactoryreset()
2626
dut_cloud.uart.flush()
2727
reset_device()
28-
dut_cloud.uart.wait_for_str("Connected to Cloud", timeout=120)
28+
dut_cloud.uart.wait_for_str("Connected to Cloud", timeout=240)
2929

3030
dut_cloud.cloud.patch_update_interval(dut_cloud.device_id, interval=TEST_UPDATE_INTERVAL)
3131
dut_cloud.uart.wait_for_str(f"main: Received new interval: {TEST_UPDATE_INTERVAL} seconds", timeout=120)

tests/on_target/tests/test_functional/test_fota.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _run_fota(bundle_id="", fota_type="app", fotatimeout=APP_FOTA_TIMEOUT, new_v
120120
dut_fota.uart.xfactoryreset()
121121
dut_fota.uart.flush()
122122
reset_device()
123-
dut_fota.uart.wait_for_str("Connected to Cloud")
123+
dut_fota.uart.wait_for_str("Connected to Cloud", timeout=240)
124124
try:
125125
dut_fota.data['job_id'] = dut_fota.fota.create_fota_job(dut_fota.device_id, bundle_id)
126126
dut_fota.data['bundle_id'] = bundle_id

tests/on_target/tests/test_functional/test_memfault.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_memfault(dut_board, debug_hex_file):
100100
dut_board.uart.xfactoryreset()
101101
dut_board.uart.flush()
102102
reset_device()
103-
dut_board.uart.wait_for_str("Connected to Cloud", timeout=120)
103+
dut_board.uart.wait_for_str("Connected to Cloud", timeout=240)
104104

105105
now = datetime.now(timezone.utc)
106106
start_time = now.strftime("%Y-%m-%dT%H:%M:%SZ")

tests/on_target/tests/test_functional/test_patched.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_patched_firmware(dut_board, hex_file_patched):
3333
# Cloud connection
3434
dut_board.uart.flush()
3535
reset_device()
36-
dut_board.uart.wait_for_str(pattern_cloud, timeout=120)
36+
dut_board.uart.wait_for_str(pattern_cloud, timeout=240)
3737

3838
# Wait for shadow request
3939
dut_board.uart.wait_for_str(pattern_shadow, timeout=30)

tests/on_target/tests/test_functional/test_sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_sampling(dut_board, hex_file):
3838
# Cloud connection
3939
dut_board.uart.flush()
4040
reset_device()
41-
dut_board.uart.wait_for_str("Connected to Cloud", timeout=120)
41+
dut_board.uart.wait_for_str("Connected to Cloud", timeout=240)
4242

4343
# Sampling
4444
dut_board.uart.wait_for_str(pattern_list, timeout=120)

0 commit comments

Comments
 (0)