From 0b930ea4ed5ee84f0fbbd37b158ced58a06c6660 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 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 Reviewed-on: http://review.gluster.org/13556 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- 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 4586e5a6acf..04c350e688d 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 @@ -21,10 +21,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