Skip to content

Commit 6e2662f

Browse files
committed
ensure the minimum idle timeout is smaller than the expected timeout
1 parent 022975a commit 6e2662f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/pytest-simcore/src/pytest_simcore/helpers/playwright.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,10 @@ def expected_service_running(
608608
waiter = SocketIONodeProgressCompleteWaiter(
609609
node_id=node_id,
610610
logger=ctx.logger,
611+
max_idle_timeout=min(
612+
_SOCKET_IO_NODE_PROGRESS_WAITER_MAX_IDLE_TIMEOUT,
613+
timedelta(seconds=timeout / 1000 - 10),
614+
),
611615
)
612616
stack.enter_context(
613617
websocket.expect_event("framereceived", waiter, timeout=timeout)
@@ -666,6 +670,10 @@ def wait_for_service_running(
666670
waiter = SocketIONodeProgressCompleteWaiter(
667671
node_id=node_id,
668672
logger=ctx.logger,
673+
max_idle_timeout=min(
674+
_SOCKET_IO_NODE_PROGRESS_WAITER_MAX_IDLE_TIMEOUT,
675+
timedelta(seconds=timeout / 1000 - 10),
676+
),
669677
)
670678
stack.enter_context(
671679
websocket.expect_event("framereceived", waiter, timeout=timeout)

0 commit comments

Comments
 (0)