Skip to content

Commit 954cd6a

Browse files
committed
TUN-4091: Use flaky decorator to rerun reconnect component tests when they fail
1 parent 8432735 commit 954cd6a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

component-tests/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
flaky==3.7.0
12
pytest==6.2.2
23
pyyaml==5.4.1
34
requests==2.25.1

component-tests/test_reconnect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env python
22
import copy
3-
3+
from flaky import flaky
44
from retrying import retry
55
from time import sleep
66

77
from util import start_cloudflared, wait_tunnel_ready, check_tunnel_not_connected, send_requests
88

99

10+
@flaky(max_runs=3, min_passes=1)
1011
class TestReconnect():
1112
default_ha_conns = 4
1213
default_reconnect_secs = 5

0 commit comments

Comments
 (0)