From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5E80324545 for ; Wed, 3 Jul 2019 19:27:34 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iagucSiQmEdC for ; Wed, 3 Jul 2019 19:27:34 -0400 (EDT) Received: from smtp36.i.mail.ru (smtp36.i.mail.ru [94.100.177.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 2146E24527 for ; Wed, 3 Jul 2019 19:27:34 -0400 (EDT) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH 1/5] swim: fix flaky 'indirect pings' test Date: Thu, 4 Jul 2019 01:28:30 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: kostja@tarantool.org 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)