File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ var _ = Describe("UniversalClient", func() {
3939		Expect (client .Ping (ctx ).Err ()).NotTo (HaveOccurred ())
4040	})
4141
42- 	It ("should  connect to clusters with unstableresp3 " , Label ("NonRedisEnterprise" ), func () {
42+ 	It ("connect to clusters with UniversalClient and UnstableResp3 " , Label ("NonRedisEnterprise" ), func () {
4343		client  =  redis .NewUniversalClient (& redis.UniversalOptions {
4444			Addrs :         cluster .addrs (),
4545			Protocol :      3 ,
@@ -49,4 +49,15 @@ var _ = Describe("UniversalClient", func() {
4949		a  :=  func () { client .FTInfo (ctx , "all" ).Result () }
5050		Expect (a ).ToNot (Panic ())
5151	})
52+ 
53+ 	It ("connect to clusters with ClusterClient and UnstableResp3" , Label ("NonRedisEnterprise" ), func () {
54+ 		client  =  redis .NewClusterClient (& redis.ClusterOptions {
55+ 			Addrs :         cluster .addrs (),
56+ 			Protocol :      3 ,
57+ 			UnstableResp3 : true ,
58+ 		})
59+ 		Expect (client .Ping (ctx ).Err ()).NotTo (HaveOccurred ())
60+ 		a  :=  func () { client .FTInfo (ctx , "all" ).Result () }
61+ 		Expect (a ).ToNot (Panic ())
62+ 	})
5263})
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments