TUN-4091: Use flaky decorator to rerun reconnect component tests when they fail
This commit is contained in:
		
							parent
							
								
									8432735867
								
							
						
					
					
						commit
						954cd6adca
					
				| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
 | 
					flaky==3.7.0
 | 
				
			||||||
pytest==6.2.2
 | 
					pytest==6.2.2
 | 
				
			||||||
pyyaml==5.4.1
 | 
					pyyaml==5.4.1
 | 
				
			||||||
requests==2.25.1
 | 
					requests==2.25.1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,12 +1,13 @@
 | 
				
			||||||
#!/usr/bin/env python
 | 
					#!/usr/bin/env python
 | 
				
			||||||
import copy
 | 
					import copy
 | 
				
			||||||
 | 
					from flaky import flaky
 | 
				
			||||||
from retrying import retry
 | 
					from retrying import retry
 | 
				
			||||||
from time import sleep
 | 
					from time import sleep
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from util import start_cloudflared, wait_tunnel_ready, check_tunnel_not_connected, send_requests
 | 
					from util import start_cloudflared, wait_tunnel_ready, check_tunnel_not_connected, send_requests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@flaky(max_runs=3, min_passes=1)
 | 
				
			||||||
class TestReconnect():
 | 
					class TestReconnect():
 | 
				
			||||||
    default_ha_conns = 4
 | 
					    default_ha_conns = 4
 | 
				
			||||||
    default_reconnect_secs = 5
 | 
					    default_reconnect_secs = 5
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue