Skip to content

Commit e48e26a

Browse files
author
A. Jesse Jiryu Davis
committed
Reduce number of tries before failing PYTHON-431 test
1 parent bed1ab0 commit e48e26a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/high_availability/test_ha.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ def test_pinning(self):
764764
# Now verify changing the tag_sets unpins the member.
765765
tags0 = [{'a': 'a'}, {}]
766766
tags1 = [{'a': 'x'}, {}]
767-
for _ in range(10000):
767+
for _ in range(1000):
768768
host = utils.read_from_which_host(c, NEAREST, tags0)
769769
new_host = utils.read_from_which_host(c, NEAREST, tags1)
770770
if host != new_host:
@@ -776,7 +776,7 @@ def test_pinning(self):
776776

777777
# Finally, verify changing the secondary_acceptable_latency_ms unpins
778778
# the member.
779-
for _ in range(10000):
779+
for _ in range(1000):
780780
host = utils.read_from_which_host(c, SECONDARY, None, 15)
781781
new_host = utils.read_from_which_host(c, SECONDARY, None, 20)
782782
if host != new_host:

0 commit comments

Comments
 (0)