diff options
author | kshithijiyer <kshithij.ki@gmail.com> | 2020-08-08 01:11:39 +0530 |
---|---|---|
committer | kshithijiyer <kshithij.ki@gmail.com> | 2020-08-08 01:11:39 +0530 |
commit | 55a334245ff504d2a2bc999950604019323c9728 (patch) | |
tree | 1496ae937d496e9891cb8d6a533bdd8e1d1260ab /tests/functional/quota | |
parent | 7db554ed5aae140642cbe700030b109326a169e1 (diff) |
[Testfix] Increase sleep time in test_alert_time_out
Problem:
Test script test_alert_time_out currently fails
2 out of 6 times when executed on the same setup
this is due to the log files not have 120004 A
alert message. This issue is only observed in
distributed volume type mounted over fuse
protocol.
Solution:
There is no permanent solution to this problem
as even if we increase the sleep 20 seconds there
is still a chance that it might fail. The optimal
sleep time where it only fails 5 times after 15
attempts is 6 seconds. Hence changing sleep time
to 6 seconds.
Change-Id: I9e9bd41321e24f502d90c3c34edce9113133755e
Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
Diffstat (limited to 'tests/functional/quota')
-rwxr-xr-x | tests/functional/quota/test_alert_time_out.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/quota/test_alert_time_out.py b/tests/functional/quota/test_alert_time_out.py index cadb0de72..626a04d2b 100755 --- a/tests/functional/quota/test_alert_time_out.py +++ b/tests/functional/quota/test_alert_time_out.py @@ -278,9 +278,9 @@ class QuotaTimeOut(GlusterBaseClass): g.log.info("Files creation stopped on mountpoint once exceeded " "hard limit") - # Inserting sleep of 2 seconds so the alert message gets enough time + # Inserting sleep of 6 seconds so the alert message gets enough time # to be logged - time.sleep(2) + time.sleep(6) # Append unique string to the brick log g.log.info("Appending string 'appended_string_6' to the log:") |