summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Pandit <spandit@redhat.com>2014-06-12 04:31:47 +0530
committerVijay Bellur <vbellur@redhat.com>2014-06-12 03:58:03 -0700
commit75279b20e956588ba7f6c7f2a5b8fa15da5672ed (patch)
treee5a8fa8a2cea8d9bfaa784b88e131792ab92341c
parent8a2454d4490abb4860fa9ebc83c8bda8ed8aa260 (diff)
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 <spandit@redhat.com> Reviewed-on: http://review.gluster.org/8041 Reviewed-by: Raghavendra Talur <rtalur@redhat.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--tests/bugs/bug-1104642.t1
1 files changed, 1 insertions, 0 deletions
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;