From 75279b20e956588ba7f6c7f2a5b8fa15da5672ed Mon Sep 17 00:00:00 2001 From: Sachin Pandit Date: Thu, 12 Jun 2014 04:31:47 +0530 Subject: tests : Fix for spurious failure of bug-1104642.t. Problem : This test case checks whether global option is updated when glusterd goes down and comes back up. There might be a scenario where the handshake is not completed yet and we issue a volume info in between. In that case when we try to grep a key from gluster volume info output it might not be there. Hence to get some time we can issue a peer status command and verify that the peer count is correct. Change-Id: I2933d55ce8c80517a555fa3c2e4cd768cde30abf BUG: 1104642 Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/8041 Reviewed-by: Raghavendra Talur Reviewed-by: Atin Mukherjee Reviewed-by: Pranith Kumar Karampuri Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- tests/bugs/bug-1104642.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/bugs/bug-1104642.t b/tests/bugs/bug-1104642.t index c5cb72794aa..da56eb5db75 100644 --- a/tests/bugs/bug-1104642.t +++ b/tests/bugs/bug-1104642.t @@ -41,6 +41,7 @@ TEST $glusterd_2 #Verify whether the value has been synced EXPECT '80' get_value 'cluster.server-quorum-ratio' 1 +EXPECT_WITHIN $PROBE_TIMEOUT '1' peer_count EXPECT '80' get_value 'cluster.server-quorum-ratio' 2 cleanup; -- cgit