Skip to content

Commit

Permalink
TUN-8380: Add sleep before requesting quick tunnel as temporary fix f…
Browse files Browse the repository at this point in the history
…or component tests
  • Loading branch information
chungthuang committed Apr 22, 2024
1 parent b9898a9 commit 5e5f2f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions component-tests/test_quicktunnels.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
from conftest import CfdModes
from constants import METRICS_PORT
import time
from util import LOGGER, start_cloudflared, wait_tunnel_ready, get_quicktunnel_url, send_requests

class TestQuickTunnels:
Expand All @@ -9,6 +10,7 @@ def test_quick_tunnel(self, tmp_path, component_tests_config):
LOGGER.debug(config)
with start_cloudflared(tmp_path, config, cfd_pre_args=["tunnel", "--ha-connections", "1"], cfd_args=["--hello-world"], new_process=True):
wait_tunnel_ready(require_min_connections=1)
time.sleep(10)
url = get_quicktunnel_url()
send_requests(url, 3, True)

Expand All @@ -17,6 +19,7 @@ def test_quick_tunnel_url(self, tmp_path, component_tests_config):
LOGGER.debug(config)
with start_cloudflared(tmp_path, config, cfd_pre_args=["tunnel", "--ha-connections", "1"], cfd_args=["--url", f"http://localhost:{METRICS_PORT}/"], new_process=True):
wait_tunnel_ready(require_min_connections=1)
time.sleep(10)
url = get_quicktunnel_url()
send_requests(url+"/ready", 3, True)

Expand Down

0 comments on commit 5e5f2f4

Please sign in to comment.