From a88cb01c78c9a13d2879917b54ead26dce8cc63c Mon Sep 17 00:00:00 2001 From: hari gowtham Date: Wed, 22 Feb 2017 15:19:20 +0530 Subject: 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 Change-Id: Ie270f3f3c8942081cca85dc49ef8fec76f3a261a BUG: 1425743 Reviewed-on: https://review.gluster.org/16711 Smoke: Gluster Build System Tested-by: hari gowtham NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Shyamsundar Ranganathan --- .../glusterd/bug-1303028-Rebalance-glusterd-rpc-connection-issue.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/bugs/glusterd') 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 afbc30264e..00f20c1ff7 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` -- cgit