path: root/tests
diff options
authorVijay Bellur <>2014-02-09 18:51:02 +0530
committerAnand Avati <>2014-02-09 23:20:46 -0800
commit0d23c99e46b3752b39487cb9268457a2f5e768fe (patch)
treec98d3c115b54b8dfd5e446108ea37e1094c25e52 /tests
parentdd9e406cf48142e7fa0619d17ccf3ecc71ce36ae (diff)
tests: Set hard and soft timeouts to 0 to ensure enforcement.
Change-Id: Ib233d00ea73e4141a404a2abadf9f6f81896c14d BUG: 1038598 Signed-off-by: Vijay Bellur <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Raghavendra G <>
Diffstat (limited to 'tests')
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/bugs/bug-1038598.t b/tests/bugs/bug-1038598.t
index 22790ad04..d4b0b3e63 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";