summaryrefslogtreecommitdiffstats
path: root/tests/bugs/quota/bug-1293601.t
diff options
context:
space:
mode:
authorvmallika <vmallika@redhat.com>2016-03-01 16:40:35 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-03-04 04:11:02 -0800
commit0b930ea4ed5ee84f0fbbd37b158ced58a06c6660 (patch)
tree4f61e289d96790ffb249751789b0423a941ed56c /tests/bugs/quota/bug-1293601.t
parent85b9e8ebb89ecadd30a364853e1e7c706dcce968 (diff)
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 <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/13556 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'tests/bugs/quota/bug-1293601.t')
-rw-r--r--tests/bugs/quota/bug-1293601.t8
1 files changed, 3 insertions, 5 deletions
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 "/"