From 7b7ddeba58e384eddd10f92ffb613590e449e02d Mon Sep 17 00:00:00 2001 From: "hrushikesh.bhosale" Date: Tue, 30 Dec 2025 15:24:23 +0530 Subject: [PATCH] fix(file_server): File servering example pytest failure There is timeout failure, due to network issue. --- .../file_serving/pytest_http_server_file_serving.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/protocols/http_server/file_serving/pytest_http_server_file_serving.py b/examples/protocols/http_server/file_serving/pytest_http_server_file_serving.py index 406396e709..19a1cf61a0 100644 --- a/examples/protocols/http_server/file_serving/pytest_http_server_file_serving.py +++ b/examples/protocols/http_server/file_serving/pytest_http_server_file_serving.py @@ -82,7 +82,7 @@ def test_examples_protocol_http_server_file_serving(dut: Dut) -> None: download_data = client.getreq(conn, '/' + str(upload_file_name)) try: - dut.expect('File sending complete', timeout=10) + dut.expect('File sending complete', timeout=20) except Exception: logging.info('Failed the test to download existing file from the file server') raise @@ -98,7 +98,7 @@ def test_examples_protocol_http_server_file_serving(dut: Dut) -> None: logging.info('\nTesting the upload of "already existing" file on the file server') client.postreq(conn, '/upload/' + str(upload_file_name), data=None) try: - dut.expect('File already exists : /data/' + str(upload_file_name), timeout=10) + dut.expect('File already exists : /data/' + str(upload_file_name), timeout=20) except Exception: logging.info('Failed the test for uploading existing file on the file server') raise @@ -119,7 +119,7 @@ def test_examples_protocol_http_server_file_serving(dut: Dut) -> None: logging.info('\nTesting the deletion of "existing" file on the file server') client.postreq(conn, '/delete/' + str(upload_file_name), data=None) try: - dut.expect('Deleting file : /' + str(upload_file_name), timeout=10) + dut.expect('Deleting file : /' + str(upload_file_name), timeout=20) except Exception: logging.info('Failed the test for deletion of existing file on the file server') raise @@ -130,7 +130,7 @@ def test_examples_protocol_http_server_file_serving(dut: Dut) -> None: logging.info('\nTesting the deletion of "non existing" file on the file server') client.postreq(conn, '/delete/' + str(upload_file_name), data=None) try: - dut.expect('File does not exist : /' + str(upload_file_name), timeout=10) + dut.expect('File does not exist : /' + str(upload_file_name), timeout=20) except Exception: logging.info('Failed the test for deleting non existing file on the file server') raise @@ -143,7 +143,7 @@ def test_examples_protocol_http_server_file_serving(dut: Dut) -> None: download_data = client.getreq(conn, '/' + str(upload_file_name)) try: - dut.expect('Failed to stat file : /data/' + str(upload_file_name), timeout=10) + dut.expect('Failed to stat file : /data/' + str(upload_file_name), timeout=20) except Exception: logging.info('Failed the test to download non existing file from the file server') raise