Skip to content

Commit 107bb3b

Browse files
committed
added test for max number of user sessions
1 parent ff0b32a commit 107bb3b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

services/web/server/tests/unit/with_dbs/02/test_projects_states_handlers.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,21 @@ async def test_open_shared_project_multiple_users(
14741474
base_client, shared_project, expected.ok, opened_project_state
14751475
)
14761476

1477+
# create an additional user, opening the project again shall raise
1478+
client_n = client_on_running_server_factory()
1479+
client_n_tab_id = client_session_id_factory()
1480+
1481+
user_n = await exit_stack.enter_async_context(
1482+
LoggedUser(client_n, {"role": logged_user["role"]})
1483+
)
1484+
1485+
sio_n, sio_n_handlers = await create_socketio_connection_with_handlers(
1486+
client_n, client_n_tab_id
1487+
)
1488+
1489+
# user i opens the shared project
1490+
await _open_project(client_n, client_n_tab_id, shared_project, expected.conflict)
1491+
14771492

14781493
@pytest.mark.parametrize(*standard_user_role_response())
14791494
async def test_open_shared_project_2_users_locked_remove_once_rtc_collaboration_is_defaulted(

0 commit comments

Comments
 (0)