mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-30 16:02:17 +08:00 
			
		
		
		
	* fix: GroupApplicationAcceptedNotification * fix: GroupApplicationAcceptedNotification * fix: NotificationUserInfoUpdate * cicd: robot automated Change * fix: component * fix: getConversationInfo * feat: cron task * feat: cron task * feat: cron task * feat: cron task * feat: cron task * fix: minio config url recognition error * update gomake version * update gomake version * fix: seq conversion bug * fix: redis pipe exec * fix: ImportFriends * fix: A large number of logs keysAndValues length is not even * feat: mark read aggregate write * feat: online status supports redis cluster * feat: online status supports redis cluster * feat: online status supports redis cluster * merge * merge * read seq is written to mongo * read seq is written to mongo --------- Co-authored-by: withchao <withchao@users.noreply.github.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			440 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			440 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package push
 | |
| 
 | |
| import (
 | |
| 	"github.com/openimsdk/protocol/sdkws"
 | |
| 	"testing"
 | |
| )
 | |
| 
 | |
| func TestName(t *testing.T) {
 | |
| 	var c ConsumerHandler
 | |
| 	c.readCh = make(chan *sdkws.MarkAsReadTips)
 | |
| 
 | |
| 	go c.loopRead()
 | |
| 
 | |
| 	go func() {
 | |
| 		for i := 0; ; i++ {
 | |
| 			seq := int64(i + 1)
 | |
| 			if seq%3 == 0 {
 | |
| 				seq = 1
 | |
| 			}
 | |
| 			c.readCh <- &sdkws.MarkAsReadTips{
 | |
| 				ConversationID:   "c100",
 | |
| 				MarkAsReadUserID: "u100",
 | |
| 				HasReadSeq:       seq,
 | |
| 			}
 | |
| 		}
 | |
| 	}()
 | |
| 
 | |
| 	select {}
 | |
| }
 |