Skip to content

Commit f169039

Browse files
authored
Work around flaky partitions test with a sleep (#7601)
1 parent cc40c8e commit f169039

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/partitions_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ def set_certs(from_days_diff, validity_period_days, nodes):
377377
# Restore connectivity with primary, an election may or may not happen
378378
network.wait_for_primary_unanimity(min_view=r.view + 1)
379379

380+
# Dropped partition, and even primary unanimity, do not mean node connectivity has been instantaneously restored.
381+
# Sleep through potential delays in reconnection.
382+
time.sleep(3)
383+
380384
# Set valid node certs so that future clients can speak to these nodes
381385
set_certs(from_days_diff=-1, validity_period_days=7, nodes=(primary, backup_a))
382386

0 commit comments

Comments
 (0)