summaryrefslogtreecommitdiffstats
path: root/tests/basic
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2016-08-22 13:59:01 +0530
committerVijay Bellur <vbellur@redhat.com>2016-08-22 10:30:18 -0700
commiteddada59f7ad3cf21463a558a5f62591f4b72c68 (patch)
tree842b1425e19f6b977c1169a4fac701e97065b3f3 /tests/basic
parentc48f99ae6b4cb44415f2451277cd472a26503034 (diff)
tests: fix volfile_server_switch.t spurious failure
1. Unnecessary self probe is removed 2. After every probe a peer_count check is added to give the test to time finish handhake. Change-Id: Iab52548f8b781e7968250cd98fdbeaf02472970d BUG: 1368953 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/15231 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/glusterd/volfile_server_switch.t4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/basic/glusterd/volfile_server_switch.t b/tests/basic/glusterd/volfile_server_switch.t
index 0b0e6470244..309060919b7 100644
--- a/tests/basic/glusterd/volfile_server_switch.t
+++ b/tests/basic/glusterd/volfile_server_switch.t
@@ -18,12 +18,10 @@ cleanup;
TEST launch_cluster 3;
-TEST $CLI_1 peer probe $H1;
-
TEST $CLI_1 peer probe $H2;
+EXPECT_WITHIN $PROBE_TIMEOUT 1 peer_count
TEST $CLI_1 peer probe $H3;
-
EXPECT_WITHIN $PROBE_TIMEOUT 2 peer_count
TEST $CLI_1 volume create $V0 $H1:$B1/$V0 $H2:$B2/$V0 $H3:$B3/$V0