mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 11:22:10 +08:00 
			
		
		
		
	refactor: delete message and message batch use lua.
This commit is contained in:
		
							parent
							
								
									46878a6251
								
							
						
					
					
						commit
						eb6ba7e3cd
					
				
							
								
								
									
										4
									
								
								pkg/common/storage/cache/redis/msg_test.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								pkg/common/storage/cache/redis/msg_test.go
									
									
									
									
										vendored
									
									
								
							@ -74,10 +74,10 @@ 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}}, []int64{}, assert.NoError},
 | 
			
		||||
			[]*sdkws.MsgData{{Seq: 1}, {Seq: 2}, {Seq: 3}}, nil, assert.NoError},
 | 
			
		||||
		{"test2", fields{rdb: redis.NewClient(&redis.Options{Addr: "localhost:16379", Password: "openIM123", DB: 0})},
 | 
			
		||||
			args{context.Background(), "cid", []int64{4, 5, 6}},
 | 
			
		||||
			[]*sdkws.MsgData{}, []int64{4, 5, 6}, assert.NoError},
 | 
			
		||||
			nil, []int64{4, 5, 6}, assert.NoError},
 | 
			
		||||
	}
 | 
			
		||||
	for _, tt := range tests {
 | 
			
		||||
		t.Run(tt.name, func(t *testing.T) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user