Skip to content

Commit 0dd64f9

Browse files
committed
ensure we do not re-connect when done
1 parent 02d1251 commit 0dd64f9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,10 @@ def expect_event(
218218
predicate: typing.Callable | None = None,
219219
*,
220220
timeout: float | None = None,
221-
expecting_closing: bool = False,
222221
) -> EventContextManager:
223222
"""
224223
Register an event listener with support for reconnection.
225224
"""
226-
if expecting_closing:
227-
self.auto_reconnect = False
228225
output = self.ws.expect_event(event, predicate, timeout=timeout)
229226
self._registered_events.append((event, predicate))
230227
return output

tests/e2e-playwright/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,6 @@ def wait_for_done(response):
598598
"framereceived",
599599
SocketIOProjectClosedWaiter(ctx.logger),
600600
timeout=_PROJECT_CLOSING_TIMEOUT,
601-
expecting_closing=True,
602601
)
603602
)
604603
if created_project_uuids:

tests/e2e-playwright/tests/jupyterlabs/test_jupyterlab.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ def test_jupyterlab(
164164
)
165165
terminal.press("Enter")
166166

167+
restartable_terminal_web_socket.auto_reconnect = False
168+
167169
# NOTE: this is to let some tester see something
168170
page.wait_for_timeout(2000)
169171

tests/e2e-playwright/tests/tip/test_ti_plan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,5 @@ def test_classic_ti_plan( # noqa: PLR0915
344344
s4l_postpro_iframe.get_by_test_id("tree-item-SurfaceViewer").nth(
345345
0
346346
).click()
347+
348+
restartable_jlab_websocket.auto_reconnect = False

0 commit comments

Comments
 (0)