From d81c0422f373767b7f7068df64804b9e881ed14b Mon Sep 17 00:00:00 2001
From: Yaroslav Dynnikov <yaroslav.dynnikov@gmail.com>
Date: Mon, 21 Nov 2022 23:57:48 +0300
Subject: [PATCH] test: fix timeouts speeding up restart_both

---
 test/int/test_couple.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/int/test_couple.py b/test/int/test_couple.py
index eef8d367d9..f5c64fb7f9 100644
--- a/test/int/test_couple.py
+++ b/test/int/test_couple.py
@@ -109,7 +109,12 @@ def test_restart_both(cluster2: Cluster):
     # i1 has already initialized raft node but can't win election yet
     # i2 starts discovery and should be able to advance further
     wait_alive(i1)
+
     i2.start()
+    wait_alive(i2)
+
+    # Speed up elections
+    i2.call("picolib.raft_timeout_now")
 
     i1.wait_online()
     assert i1.current_grade() == dict(variant="Online", incarnation=2)
-- 
GitLab