From bf666972bc40cc081c5ad63a7d1e83cc3e758e56 Mon Sep 17 00:00:00 2001
From: Georgy Moshkin <gmoshkin@picodata.io>
Date: Fri, 21 Oct 2022 16:35:06 +0300
Subject: [PATCH] test: increase timeouts in tests to cure some flakiness

---
 test/conftest.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/conftest.py b/test/conftest.py
index b526c0f4bd..4f98d56407 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -416,7 +416,7 @@ class Instance:
 
         assert want == have
 
-    @funcy.retry(tries=30, timeout=0.2)
+    @funcy.retry(tries=30, timeout=0.5)
     def wait_online(self):
         """Wait until instance attains Online grade
 
@@ -437,7 +437,7 @@ class Instance:
 
         eprint(f"{self} is online")
 
-    @funcy.retry(tries=4, timeout=0.1, errors=AssertionError)
+    @funcy.retry(tries=4, timeout=0.5, errors=AssertionError)
     def promote_or_fail(self):
         eprint(f"{self} is trying to become a leader")
 
@@ -445,7 +445,7 @@ class Instance:
         self.call("picolib.raft_timeout_now")
 
         # 2. Wait until the miracle occurs.
-        @funcy.retry(tries=4, timeout=0.1, errors=AssertionError)
+        @funcy.retry(tries=4, timeout=0.5, errors=AssertionError)
         def wait_promoted():
             self.assert_raft_status("Leader")
 
-- 
GitLab