diff options
author | vmallika <vmallika@redhat.com> | 2016-03-01 16:40:35 +0530 |
---|---|---|
committer | Raghavendra Talur <rtalur@redhat.com> | 2016-03-04 04:26:48 -0800 |
commit | 5e754c243bb28f7ee5a25d42324c8148e62d745d (patch) | |
tree | 4f3c6163d3be9b83473df5305a91e55cd7b4812d /tests/bugs | |
parent | 1da6a7525eb83f429c6f6ef2bba58c0adf3f64aa (diff) |
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 <vmallika@redhat.com>
Change-Id: Ie8540ab7a4eba66ec0eafae5129e5d188d1a0500
BUG: 1313302
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/13557
Reviewed-by: Manikandan Selvaganesh <mselvaga@redhat.com>
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: Raghavendra Talur <rtalur@redhat.com>
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/quota/bug-1293601.t | 8 |
1 files changed, 3 insertions, 5 deletions
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 "/" |