[tarantool-patches] [PATCH 1/5] swim: fix flaky 'indirect pings' test

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Thu Jul 4 02:28:30 MSK 2019


With a certain random seed sometimes a member was checked for a
status in a wrong moment of time.
---
 test/unit/swim.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/unit/swim.c b/test/unit/swim.c
index 349c3312e..d93f80554 100644
--- a/test/unit/swim.c
+++ b/test/unit/swim.c
@@ -892,9 +892,9 @@ swim_test_indirect_ping(void)
 	swim_cluster_set_drop_channel(cluster, 0, 1, true);
 	swim_cluster_set_drop_channel(cluster, 1, 0, true);
 	swim_run_for(10);
-	is(swim_cluster_wait_status_everywhere(cluster, 0, MEMBER_ALIVE, 0),
+	is(swim_cluster_wait_status_everywhere(cluster, 0, MEMBER_ALIVE, 3),
 	   0, "S1 is still alive everywhere");
-	is(swim_cluster_wait_status_everywhere(cluster, 1, MEMBER_ALIVE, 0),
+	is(swim_cluster_wait_status_everywhere(cluster, 1, MEMBER_ALIVE, 3),
 	   0, "as well as S2 - they communicated via S3");
 
 	swim_cluster_delete(cluster);
-- 
2.20.1 (Apple Git-117)





More information about the Tarantool-patches mailing list