From 5e754c243bb28f7ee5a25d42324c8148e62d745d Mon Sep 17 00:00:00 2001 From: vmallika Date: Tue, 1 Mar 2016 16:40:35 +0530 Subject: quota: reduce latency for testcase ./tests/bugs/quota/bug-1293601.t This is a backport of http://review.gluster.org/#/c/13556/ Currently test-case './tests/bugs/quota/bug-1293601.t' runs quota enable and disable 10 times each, which take a long time. This is not a real use-case and it is enough to test once. > Change-Id: Ic282d66438f89721f3c392929047ba42b85ad155 > BUG: 1313300 > Signed-off-by: vmallika Change-Id: Ie8540ab7a4eba66ec0eafae5129e5d188d1a0500 BUG: 1313302 Signed-off-by: vmallika Reviewed-on: http://review.gluster.org/13557 Reviewed-by: Manikandan Selvaganesh Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra Talur --- tests/bugs/quota/bug-1293601.t | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/bugs/quota/bug-1293601.t b/tests/bugs/quota/bug-1293601.t index 9b8a13a61e5..c089efb5026 100644 --- a/tests/bugs/quota/bug-1293601.t +++ b/tests/bugs/quota/bug-1293601.t @@ -4,7 +4,7 @@ . $(dirname $0)/../../volume.rc cleanup; -TESTS_EXPECTED_IN_LOOP=1044 +TESTS_EXPECTED_IN_LOOP=1024 TEST glusterd TEST pidof glusterd @@ -22,10 +22,8 @@ done EXPECT_WITHIN $MARKER_UPDATE_TIMEOUT "1.0MB" quotausage "/" -for i in {1..10}; do - TEST_IN_LOOP $CLI volume quota $V0 disable - TEST_IN_LOOP $CLI volume quota $V0 enable -done +TEST $CLI volume quota $V0 disable +TEST $CLI volume quota $V0 enable TEST $CLI volume quota $V0 limit-usage / 2MB EXPECT_WITHIN $MARKER_UPDATE_TIMEOUT "1.0MB" quotausage "/" -- cgit