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
							
								
									700fa17ed0
								
							
						
					
					
						commit
						bcf089cb07
					
				
							
								
								
									
										3
									
								
								pkg/common/storage/cache/redis/msg_test.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								pkg/common/storage/cache/redis/msg_test.go
									
									
									
									
										vendored
									
									
								
							@ -19,6 +19,7 @@ import (
 | 
			
		||||
	"github.com/openimsdk/protocol/sdkws"
 | 
			
		||||
	"github.com/redis/go-redis/v9"
 | 
			
		||||
	"github.com/stretchr/testify/assert"
 | 
			
		||||
	"google.golang.org/protobuf/proto"
 | 
			
		||||
	"testing"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@ -99,7 +100,7 @@ func Test_msgCache_GetMessagesBySeq(t *testing.T) {
 | 
			
		||||
func equalMsgDataSlices(t *testing.T, expected, actual []*sdkws.MsgData) {
 | 
			
		||||
	assert.Equal(t, len(expected), len(actual), "Slices have different lengths")
 | 
			
		||||
	for i := range expected {
 | 
			
		||||
		assert.Equal(t, expected[i], actual[i], " not equal")
 | 
			
		||||
		assert.True(t, proto.Equal(expected[i], actual[i]), "Element %d not equal: expected %v, got %v", i, expected[i], actual[i])
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user