Skip to content

Commit

Permalink
integration_tests.py: Increase timeout when waiting for PDFs
Browse files Browse the repository at this point in the history
PDFs take longer to become ready in the dev environments than in
preview.
  • Loading branch information
robinjam committed Dec 18, 2024
1 parent b5a4dff commit d672819
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration_test/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ def get_pdf_for_letter(python_client, id):
if exc.message[0]["error"] != "PDFNotReadyError":
raise

count += 3
if count > 45:
print(f"pdf {id} not ready at {datetime.utcnow()} after 45 seconds") # noqa: T201
count += 5
if count > 120:
print(f"pdf {id} not ready at {datetime.utcnow()} after 120 seconds") # noqa: T201
raise
else:
time.sleep(3)
time.sleep(5)

assert type(response) == BytesIO
assert len(response.read()) != 0
Expand Down

0 comments on commit d672819

Please sign in to comment.