Skip to content

Commit 09f2cdf

Browse files
committed
fix(tests): increase MailSlurp timeout from 30s to 60s
- Increase email wait timeout from 30000ms to 60000ms - Addresses CI email delivery delays that were causing authentication timeouts - Simple but crucial fix for the final piece of reliable CI authentication The hybrid authentication flow works perfectly, just needed more time for OTP emails to arrive in the CI environment.
1 parent 8773a84 commit 09f2cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/Tests/src/fetch_otp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def extract_otp_from_email(email_body):
2323

2424
def fetch_code():
2525
waitfor_controller = get_mailslurp_client()
26-
email = waitfor_controller.wait_for_latest_email(inbox_id=INBOX_ID, timeout=30000, unread_only=True)
26+
email = waitfor_controller.wait_for_latest_email(inbox_id=INBOX_ID, timeout=60000, unread_only=True)
2727
if email:
2828
otp = extract_otp_from_email(email.body)
2929
return otp

0 commit comments

Comments
 (0)