From 9d1e010d0596768a65e5079faae86981273d2b07 Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751NSS@gmail.com> Date: Wed, 13 Mar 2024 14:41:10 +0800 Subject: [PATCH] Update test.sh --- scripts/install/test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install/test.sh b/scripts/install/test.sh index 326307570..8c2129a37 100755 --- a/scripts/install/test.sh +++ b/scripts/install/test.sh @@ -932,7 +932,7 @@ openim::test::set_group_info() { { "groupInfoForSet": { "groupID": "${1}", - "groupName": "new-name", + "groupName": "new group name", "notification": "new notification", "introduction": "new introduction", "faceURL": "www.newfaceURL.com", @@ -1076,6 +1076,7 @@ function openim::test::group() { local GROUP_ID=$RANDOM local GROUP_ID2=$RANDOM + # Assumes that TEST_GROUP_ID, USER_ID, and other necessary IDs are set as environment variables before running this suite. # 0. Register a friend user. openim::test::user_register "${USER_ID}" "group00" "new_face_url" @@ -1132,6 +1133,11 @@ function openim::test::group() { # 14. Set group info. openim::test::set_group_info "$GROUP_ID2" + for i in {1..50}; do + local GROUP_IDS=$RANDOM + openim::test::set_group_info "$GROUP_IDS" + done + # 15. Quit group. # TODO # openim::test::quit_group "$GROUP_ID2" "$OTHER_USER1_ID"