mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 03:42:08 +08:00
refactor: delete message and message batch use lua.
This commit is contained in:
parent
158f647e28
commit
91fd97560c
3
pkg/common/storage/cache/redis/msg_test.go
vendored
3
pkg/common/storage/cache/redis/msg_test.go
vendored
@ -64,6 +64,7 @@ func Test_msgCache_GetMessagesBySeq(t *testing.T) {
|
|||||||
conversationID string
|
conversationID string
|
||||||
seqs []int64
|
seqs []int64
|
||||||
}
|
}
|
||||||
|
var failedSeq []int64
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
fields fields
|
fields fields
|
||||||
@ -74,7 +75,7 @@ func Test_msgCache_GetMessagesBySeq(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
{"test1", fields{rdb: redis.NewClient(&redis.Options{Addr: "localhost:16379", Password: "openIM123", DB: 0})},
|
{"test1", fields{rdb: redis.NewClient(&redis.Options{Addr: "localhost:16379", Password: "openIM123", DB: 0})},
|
||||||
args{context.Background(), "cid", []int64{1, 2, 3}},
|
args{context.Background(), "cid", []int64{1, 2, 3}},
|
||||||
[]*sdkws.MsgData{{Seq: 1}, {Seq: 2}, {Seq: 3}}, nil, assert.NoError},
|
[]*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})},
|
//{"test2", fields{rdb: redis.NewClient(&redis.Options{Addr: "localhost:16379", Password: "openIM123", DB: 0})},
|
||||||
// args{context.Background(), "cid", []int64{4, 5, 6}},
|
// args{context.Background(), "cid", []int64{4, 5, 6}},
|
||||||
// nil, []int64{4, 5, 6}, assert.NoError},
|
// nil, []int64{4, 5, 6}, assert.NoError},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user