summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authorhari gowtham <hgowtham@redhat.com>2017-02-22 15:19:20 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2017-02-23 06:50:21 -0500
commita88cb01c78c9a13d2879917b54ead26dce8cc63c (patch)
tree75ae7d242aa9130dc7ade4b231452407b9cdfe68 /tests/bugs
parent583e6cfc5bc73c2a79be9d42e89b90a71454596f (diff)
TESTS/TIER: bug-1303028-Rebalance-glusterd-rpc-connection-issue.t
PROBLEM: spurious failure of the test. CAUSE: the function "rebalance_run_time" calculates the total time the tier has been running for. this being a test case, the run time of tier can be 0 and when the function adds up zero it results in zero. and thus it starts to fail. FIX: Give it some time for the function to add up the values. Signed-off-by: hari gowtham <hgowtham@redhat.com> Change-Id: Ie270f3f3c8942081cca85dc49ef8fec76f3a261a BUG: 1425743 Reviewed-on: https://review.gluster.org/16711 Smoke: Gluster Build System <jenkins@build.gluster.org> Tested-by: hari gowtham <hari.gowtham005@gmail.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Diffstat (limited to 'tests/bugs')
-rw-r--r--tests/bugs/glusterd/bug-1303028-Rebalance-glusterd-rpc-connection-issue.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bugs/glusterd/bug-1303028-Rebalance-glusterd-rpc-connection-issue.t b/tests/bugs/glusterd/bug-1303028-Rebalance-glusterd-rpc-connection-issue.t
index afbc30264e4..00f20c1ff78 100644
--- a/tests/bugs/glusterd/bug-1303028-Rebalance-glusterd-rpc-connection-issue.t
+++ b/tests/bugs/glusterd/bug-1303028-Rebalance-glusterd-rpc-connection-issue.t
@@ -68,9 +68,10 @@ sleep 2;
# Wait for the bricks to come up, *then* the tier daemon.
EXPECT_WITHIN $PROCESS_UP_TIMEOUT 5 num_bricks_up
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "0" tier_daemon_check;
+sleep 1;
time1=$(rebalance_run_time $V0);
EXPECT "0" non_zero_check $time1;
-sleep 4;
+sleep 2;
time2=$(rebalance_run_time $V0);
EXPECT "0" non_zero_check $time2;
diff=`expr $time2 - $time1`