From 1e667289df25c7edf078c4bd5ca6063c71ed0b85 Mon Sep 17 00:00:00 2001 From: ff137 Date: Thu, 17 Oct 2024 17:18:56 +0200 Subject: [PATCH] :poop: add sleep to avoid mysterious 500 error --- app/tests/e2e/test_did_exchange.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/tests/e2e/test_did_exchange.py b/app/tests/e2e/test_did_exchange.py index d0d4849f7..eadc41f78 100644 --- a/app/tests/e2e/test_did_exchange.py +++ b/app/tests/e2e/test_did_exchange.py @@ -1,3 +1,4 @@ +import asyncio from typing import Optional import pytest @@ -99,6 +100,7 @@ async def test_create_did_exchange_request( filter_map={"their_did": alice_did}, ) finally: + await asyncio.sleep(1) # Short sleep assists in avoiding 500 error # Delete connection records: await alice_member_client.delete( f"{CONNECTIONS_BASE_PATH}/{alice_connection_id}" @@ -171,6 +173,7 @@ async def test_accept_did_exchange_invitation( filter_map={"connection_id": faber_connection_id}, ) finally: + await asyncio.sleep(1) # Short sleep assists in avoiding 500 error # Delete connection records: await alice_member_client.delete( f"{CONNECTIONS_BASE_PATH}/{alice_connection_id}"