From d07df70d007c7771a892906da5eec4a7552bcb1d Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Thu, 12 Dec 2024 13:32:46 +0000 Subject: [PATCH] Fix tests --- backend/integration_tests/src/platform_moderator_tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/integration_tests/src/platform_moderator_tests.rs b/backend/integration_tests/src/platform_moderator_tests.rs index 11d0cc1e7c..c0fe814d8f 100644 --- a/backend/integration_tests/src/platform_moderator_tests.rs +++ b/backend/integration_tests/src/platform_moderator_tests.rs @@ -1,5 +1,4 @@ use crate::env::ENV; -use crate::utils::tick_many; use crate::{client, CanisterIds, TestEnv, User}; use candid::Principal; use pocket_ic::PocketIc; @@ -66,17 +65,18 @@ fn report_message_succeeds() { } fn init_test_data(env: &mut PocketIc, canister_ids: &CanisterIds, controller: Principal) -> TestData { - let user = client::register_diamond_user(env, canister_ids, controller); + let user1 = client::register_diamond_user(env, canister_ids, controller); + let user2 = client::register_diamond_user(env, canister_ids, controller); client::user_index::add_platform_moderator( env, controller, canister_ids.user_index, - &user_index_canister::add_platform_moderator::Args { user_id: user.user_id }, + &user_index_canister::add_platform_moderator::Args { user_id: user1.user_id }, ); let group_name = random_string(); - let group_id = client::user::happy_path::create_group(env, &user, &group_name, false, true); + let group_id = client::user::happy_path::create_group(env, &user1, &group_name, false, true); let moderators_group = match client::user_index::assign_platform_moderators_group( env,