Skip to content

Commit

Permalink
💩 add sleep to avoid mysterious 500 error
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Oct 17, 2024
1 parent 548b95c commit a9722d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/tests/e2e/test_did_exchange.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
from typing import Optional

import pytest
Expand Down Expand Up @@ -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}"
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit a9722d5

Please sign in to comment.