Update test.sh

pull/2085/head
Xinwei Xiong 2 years ago committed by GitHub
parent e86d1cd742
commit 9d1e010d05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -932,7 +932,7 @@ openim::test::set_group_info() {
{ {
"groupInfoForSet": { "groupInfoForSet": {
"groupID": "${1}", "groupID": "${1}",
"groupName": "new-name", "groupName": "new group name",
"notification": "new notification", "notification": "new notification",
"introduction": "new introduction", "introduction": "new introduction",
"faceURL": "www.newfaceURL.com", "faceURL": "www.newfaceURL.com",
@ -1076,6 +1076,7 @@ function openim::test::group() {
local GROUP_ID=$RANDOM local GROUP_ID=$RANDOM
local GROUP_ID2=$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. # 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. # 0. Register a friend user.
openim::test::user_register "${USER_ID}" "group00" "new_face_url" openim::test::user_register "${USER_ID}" "group00" "new_face_url"
@ -1132,6 +1133,11 @@ function openim::test::group() {
# 14. Set group info. # 14. Set group info.
openim::test::set_group_info "$GROUP_ID2" 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. # 15. Quit group.
# TODO # TODO
# openim::test::quit_group "$GROUP_ID2" "$OTHER_USER1_ID" # openim::test::quit_group "$GROUP_ID2" "$OTHER_USER1_ID"

Loading…
Cancel
Save