Skip to content

Commit 8551965

Browse files
committed
Fixed timeouts
1 parent 36cdf40 commit 8551965

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_scenario/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def r_multi_db(request) -> tuple[MultiDBClient, CheckActiveDatabaseChangedListen
5151

5252
# Retry configuration different for health checks as initial health check require more time in case
5353
# if infrastructure wasn't restored from the previous test.
54-
health_checks = [EchoHealthCheck(Retry(ExponentialBackoff(cap=5, base=0.5), retries=3))]
5554
health_check_interval = request.param.get('health_check_interval', DEFAULT_HEALTH_CHECK_INTERVAL)
5655
event_dispatcher = EventDispatcher()
5756
listener = CheckActiveDatabaseChangedListener()
@@ -84,9 +83,10 @@ def r_multi_db(request) -> tuple[MultiDBClient, CheckActiveDatabaseChangedListen
8483

8584
config = MultiDbConfig(
8685
databases_config=db_configs,
87-
additional_health_checks=health_checks,
8886
command_retry=command_retry,
8987
failure_threshold=failure_threshold,
88+
health_check_backoff=ExponentialBackoff(cap=0.5, base=0.05),
89+
health_check_retries=3,
9090
health_check_interval=health_check_interval,
9191
event_dispatcher=event_dispatcher,
9292
)

tests/test_scenario/test_active_active.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TestActiveActiveStandalone:
3737

3838
def teardown_method(self, method):
3939
# Timeout so the cluster could recover from network failure.
40-
sleep(3)
40+
sleep(4)
4141

4242
@pytest.mark.parametrize(
4343
"r_multi_db",

0 commit comments

Comments
 (0)