summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2016-08-04 11:51:27 +0530
committerAtin Mukherjee <amukherj@redhat.com>2016-08-08 06:43:06 -0700
commit6bb6eb0b2c0ef98c3a1987a143e10e97584202aa (patch)
treea576c3952be9130bd3aebde5a5d6ebe7115ceecf
parent0f2c1fdee27cf6c35dee129d14f7226a20464c23 (diff)
tests: fix spurious failure in tests/bugs/glusterd/bug-1089668.t
Backport of http://review.gluster.org/15085 Instead of rebalance stop, its always better to wait for rebalance to complete as the former doesn't have any purpose. >Reviewed-on: http://review.gluster.org/15085 >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: Jeff Darcy <jdarcy@redhat.com> Change-Id: Ia1bc2a34d937a0a96543bebd257dcda619f12474 BUG: 1364327 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/15090 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Prashanth Pai <ppai@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
-rwxr-xr-xtests/bugs/glusterd/bug-1089668.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/bugs/glusterd/bug-1089668.t b/tests/bugs/glusterd/bug-1089668.t
index f2b99bf..c8eb7c3 100755
--- a/tests/bugs/glusterd/bug-1089668.t
+++ b/tests/bugs/glusterd/bug-1089668.t
@@ -18,8 +18,7 @@ TEST $CLI volume start $V0
TEST $CLI volume rebalance $V0 start
TEST ! $CLI volume remove-brick $V0 $H0:$B0/${V0}1 status
-
-TEST $CLI volume rebalance $V0 stop
+EXPECT_WITHIN $REBALANCE_TIMEOUT "0" rebalance_completed
TEST $CLI volume remove-brick $V0 $H0:$B0/${V0}1 start
TEST ! $CLI volume rebalance $V0 status