diff options
author | Vijay Bellur <vbellur@redhat.com> | 2014-02-09 18:51:02 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-02-09 23:20:46 -0800 |
commit | 0d23c99e46b3752b39487cb9268457a2f5e768fe (patch) | |
tree | c98d3c115b54b8dfd5e446108ea37e1094c25e52 /tests/bugs | |
parent | dd9e406cf48142e7fa0619d17ccf3ecc71ce36ae (diff) |
tests: Set hard and soft timeouts to 0 to ensure enforcement.
Change-Id: Ib233d00ea73e4141a404a2abadf9f6f81896c14d
BUG: 1038598
Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-on: http://review.gluster.org/6942
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/bug-1038598.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bugs/bug-1038598.t b/tests/bugs/bug-1038598.t index 22790ad04a7..d4b0b3e63ae 100644 --- a/tests/bugs/bug-1038598.t +++ b/tests/bugs/bug-1038598.t @@ -69,6 +69,10 @@ EXPECT "6.0MB" usage "/test_dir"; EXPECT 'Yes' sl_exceeded "/test_dir"; EXPECT 'No' hl_exceeded "/test_dir"; +#set timeout to 0 so that quota gets enforced without any lag +TEST $CLI volume set $V0 features.hard-timeout 0 +TEST $CLI volume set $V0 features.soft-timeout 0 + TEST ! dd if=/dev/zero of=$M0/test_dir/file1.txt bs=1M count=15 EXPECT 'Yes' sl_exceeded "/test_dir"; EXPECT 'Yes' hl_exceeded "/test_dir"; |