From 94caa2e1ba1bc61d47e89ed20f4e7ad2914bc6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Wed, 31 Jul 2024 12:05:07 +0200 Subject: [PATCH] fix: still flaky regtest (#2617) increase wait --- tests/regtest/test_real_invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regtest/test_real_invoice.py b/tests/regtest/test_real_invoice.py index 1980b7799..f537f1caf 100644 --- a/tests/regtest/test_real_invoice.py +++ b/tests/regtest/test_real_invoice.py @@ -83,7 +83,7 @@ async def test_create_real_invoice(client, adminkey_headers_from, inkey_headers_ async for checking_id in get_funding_source().paid_invoices_stream(): if checking_id == invoice["checking_id"]: # wait for the backend to update the payment status - await asyncio.sleep(1) + await asyncio.sleep(3) return checking_id async def pay(): @@ -302,7 +302,7 @@ async def test_receive_real_invoice_set_pending_and_check_state( async for checking_id in get_funding_source().paid_invoices_stream(): if checking_id == invoice["checking_id"]: # wait for the backend to update the payment status - await asyncio.sleep(1) + await asyncio.sleep(3) return checking_id async def pay():