From ed18e7c1205a22b58daac590ef5499733725a069 Mon Sep 17 00:00:00 2001 From: Dragomir Penev Date: Tue, 4 Jun 2024 13:53:22 +0300 Subject: [PATCH] Linting --- tests/unit/test_cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_cluster.py b/tests/unit/test_cluster.py index e94f3bb2bd..2aac95e8b1 100644 --- a/tests/unit/test_cluster.py +++ b/tests/unit/test_cluster.py @@ -95,7 +95,7 @@ def test_get_alternative_patroni_url(peers_ips, patroni): for attempt_number in range(attempt.retry_state.attempt_number + 1, len(peers_ips) + 2): attempt.retry_state.attempt_number = attempt_number url = patroni._get_alternative_patroni_url(attempt) - tc.assertIn(url.split("http://")[1].split(":8008")[0], peers_ips) + assert url.split("http://")[1].split(":8008")[0] in peers_ips def test_get_member_ip(peers_ips, patroni):