mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	Purge opened connections on retries during tests (#4452)
This commit is contained in:
		 Calvin Leung Huang
					Calvin Leung Huang
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							783a5c3422
						
					
				
				
					commit
					6fc57a91d8
				
			| @@ -55,6 +55,7 @@ func prepareMongoDBTestContainer(t *testing.T) (cleanup func(), retURL string) { | ||||
| 		if err != nil { | ||||
| 			return err | ||||
| 		} | ||||
| 		defer session.Close() | ||||
| 		session.SetSyncTimeout(1 * time.Minute) | ||||
| 		session.SetSocketTimeout(1 * time.Minute) | ||||
| 		return session.Ping() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user