Skip to content

Commit faf37de

Browse files
committed
disallow opening the same project from 2 different tabs
1 parent ed3f4c2 commit faf37de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/web/server/tests/unit/with_dbs/10/test_resource_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,11 @@ async def test_interactive_services_remain_after_websocket_reconnection_from_2_t
392392
client_session_id2 = client_session_id_factory()
393393
sio2 = await socketio_client_factory(client_session_id2)
394394
assert sio.sid != sio2.sid
395-
# open project in second client
396-
await open_project(client, empty_user_project["uuid"], client_session_id2)
397395
# disconnect first websocket
398396
await sio.disconnect()
399397
assert not sio.sid
398+
# open project in second client
399+
await open_project(client, empty_user_project["uuid"], client_session_id2)
400400
# ensure sufficient time is wasted here
401401
await sleep(SERVICE_DELETION_DELAY + GARBAGE_COLLECTOR_INTERVAL)
402402
# assert dynamic service is still around

0 commit comments

Comments
 (0)