diff --git a/internal/cron_task/clear_msg_test.go b/internal/cron_task/clear_msg_test.go index e70436875..60a01d2e2 100644 --- a/internal/cron_task/clear_msg_test.go +++ b/internal/cron_task/clear_msg_test.go @@ -24,8 +24,8 @@ var ( ) func GenUserChat(startSeq, stopSeq, delSeq, index uint32, userID string) *db.UserChat { - chat := &db.UserChat{UID: userID + strconv.Itoa(int(index))} - for i := startSeq; i < stopSeq; i++ { + chat := &db.UserChat{UID: userID + ":" + strconv.Itoa(int(index))} + for i := startSeq; i <= stopSeq; i++ { msg := server_api_params.MsgData{ SendID: "sendID1", RecvID: "recvID1",