From 49b344ce35c1a12681bbf40b07d25627f92d2422 Mon Sep 17 00:00:00 2001 From: Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Sat, 1 Jun 2024 11:14:17 +0800 Subject: [PATCH] refactor: delete message and message batch use lua. --- pkg/common/storage/cache/redis/msg_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/common/storage/cache/redis/msg_test.go b/pkg/common/storage/cache/redis/msg_test.go index 6769b5dec..be0534f7c 100644 --- a/pkg/common/storage/cache/redis/msg_test.go +++ b/pkg/common/storage/cache/redis/msg_test.go @@ -76,9 +76,9 @@ func Test_msgCache_GetMessagesBySeq(t *testing.T) { {"test1", fields{rdb: redis.NewClient(&redis.Options{Addr: "localhost:16379", Password: "openIM123", DB: 0})}, args{context.Background(), "cid", []int64{1, 2, 3}}, []*sdkws.MsgData{{Seq: 1}, {Seq: 2}, {Seq: 3}}, failedSeq, assert.NoError}, - //{"test2", fields{rdb: redis.NewClient(&redis.Options{Addr: "localhost:16379", Password: "openIM123", DB: 0})}, - // args{context.Background(), "cid", []int64{4, 5, 6}}, - // nil, []int64{4, 5, 6}, assert.NoError}, + {"test2", fields{rdb: redis.NewClient(&redis.Options{Addr: "localhost:16379", Password: "openIM123", DB: 0})}, + args{context.Background(), "cid", []int64{4, 5, 6}}, + nil, []int64{4, 5, 6}, assert.NoError}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {