From 6115bf211422934b36cc647c71dd9f57dd619dde Mon Sep 17 00:00:00 2001 From: cl0ete Date: Fri, 25 Oct 2024 10:34:17 +0200 Subject: [PATCH] add look_back to wait for state --- app/tests/util/sse_listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tests/util/sse_listener.py b/app/tests/util/sse_listener.py index 939302c3a..434f27c2f 100644 --- a/app/tests/util/sse_listener.py +++ b/app/tests/util/sse_listener.py @@ -39,7 +39,7 @@ async def wait_for_event( """ Start listening for SSE events. When an event is received that matches the specified parameters. """ - url = f"{waypoint_base_url}/{self.wallet_id}/{self.topic}/{field}/{field_id}/{desired_state}" + url = f"{waypoint_base_url}/{self.wallet_id}/{self.topic}/{field}/{field_id}/{desired_state}?look_back=5" timeout = Timeout(timeout) async with RichAsyncClient(timeout=timeout) as client: