mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-26 05:02:11 +08:00
feat: Implement stress test v2. (#3292)
* feat: improve stress test code. * feat: Implement stress test v2.
This commit is contained in:
parent
4b3a2b7483
commit
7259e73ff1
@ -384,7 +384,6 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Invite To Group
|
// Invite To Group
|
||||||
if err = st.InviteToGroup(st.Ctx, userCreatedID); err != nil {
|
if err = st.InviteToGroup(st.Ctx, userCreatedID); err != nil {
|
||||||
log.ZError(st.Ctx, "Invite To Group failed.", err, "UserID", userCreatedID)
|
log.ZError(st.Ctx, "Invite To Group failed.", err, "UserID", userCreatedID)
|
||||||
@ -417,8 +416,8 @@ func main() {
|
|||||||
|
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
// Send Message
|
// Send Message
|
||||||
if err = st.SendMsg(st.Ctx, st.DefaultSendUserID); err != nil {
|
if err = st.SendMsg(st.Ctx, st.DefaultUserID); err != nil {
|
||||||
log.ZError(st.Ctx, "Send Message failed.", err, "UserID", st.DefaultSendUserID)
|
log.ZError(st.Ctx, "Send Message failed.", err, "UserID", st.DefaultUserID)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user