11#!/usr/bin/env python
22import copy
3- from flaky import flaky
4- from retrying import retry
53from time import sleep
64
7- from util import start_cloudflared , wait_tunnel_ready , check_tunnel_not_connected , send_requests
5+ from flaky import flaky
6+
7+ from util import start_cloudflared , wait_tunnel_ready , check_tunnel_not_connected
88
99
1010@flaky (max_runs = 3 , min_passes = 1 )
@@ -17,7 +17,7 @@ class TestReconnect():
1717
1818 def test_named_reconnect (self , tmp_path , component_tests_config ):
1919 config = component_tests_config (self .extra_config )
20- with start_cloudflared (tmp_path , config , new_process = True , allow_input = True ) as cloudflared :
20+ with start_cloudflared (tmp_path , config , new_process = True , allow_input = True , capture_output = False ) as cloudflared :
2121 # Repeat the test multiple times because some issues only occur after multiple reconnects
2222 self .assert_reconnect (config , cloudflared , 5 )
2323
@@ -26,7 +26,7 @@ def test_classic_reconnect(self, tmp_path, component_tests_config):
2626 extra_config ["hello-world" ] = True
2727 config = component_tests_config (
2828 additional_config = extra_config , named_tunnel = False )
29- with start_cloudflared (tmp_path , config , cfd_args = [], new_process = True , allow_input = True ) as cloudflared :
29+ with start_cloudflared (tmp_path , config , cfd_args = [], new_process = True , allow_input = True , capture_output = False ) as cloudflared :
3030 self .assert_reconnect (config , cloudflared , 1 )
3131
3232 def send_reconnect (self , cloudflared , secs ):
0 commit comments