longer timeout

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2023-12-21 09:06:08 -08:00
parent 9c6c504ae5
commit 25f8effd19

View File

@ -514,11 +514,11 @@ def test_text_to_cad():
body: TextToCad = result body: TextToCad = result
# Poll the api until the status is completed. # Poll the api until the status is completed.
# Timeout after 30 seconds. # Timeout after some seconds.
start_time = time.time() start_time = time.time()
while ( while (
body.status == ApiCallStatus.IN_PROGRESS or body.status == ApiCallStatus.QUEUED body.status == ApiCallStatus.IN_PROGRESS or body.status == ApiCallStatus.QUEUED
) and time.time() - start_time < 30: ) and time.time() - start_time < 120:
result_status: Optional[ result_status: Optional[
Union[TextToCad, Error] Union[TextToCad, Error]
] = get_text_to_cad_model_for_user.sync( ] = get_text_to_cad_model_for_user.sync(