Skip to content

Commit

Permalink
tests: Set hard and soft timeouts to 0 to ensure enforcement.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vbellur authored and avati committed Feb 10, 2014
1 parent dd9e406 commit 0d23c99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/bugs/bug-1038598.t
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 0d23c99

Please sign in to comment.