diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2018-05-28 17:24:54 +0530 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-04-19 17:27:13 +0000 |
commit | f115b53c7266a780ab492df483ebfa4704e3e003 (patch) | |
tree | d9f00e6584bc5d88ba7991456ed115eba6023b47 /source4 | |
parent | 4e685895ea1395c53c1ef68259760a1aaf2a7fc1 (diff) | |
download | samba-f115b53c7266a780ab492df483ebfa4704e3e003.tar.gz |
s4-torture: Increase timeout for lease/oplock break handlers
0.1 seconds is not enough when running tests against a server over the
network and are causing timing related bugs. We increase this to 1
second.
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/lease_break_handler.c | 4 | ||||
-rw-r--r-- | source4/torture/smb2/oplock_break_handler.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/smb2/lease_break_handler.c b/source4/torture/smb2/lease_break_handler.c index 8e576391eb1..d741127f3d5 100644 --- a/source4/torture/smb2/lease_break_handler.c +++ b/source4/torture/smb2/lease_break_handler.c @@ -108,8 +108,8 @@ void torture_wait_for_lease_break(struct torture_context *tctx) bool timesup = false; int old_count = lease_break_info.count; - /* Wait .1 seconds for an lease break */ - ne = tevent_timeval_current_ofs(0, 100000); + /* Wait 1 second for an lease break */ + ne = tevent_timeval_current_ofs(0, 1000000); te = tevent_add_timer(tctx->ev, tmp_ctx, ne, timeout_cb, ×up); if (te == NULL) { diff --git a/source4/torture/smb2/oplock_break_handler.c b/source4/torture/smb2/oplock_break_handler.c index de46eb32f2a..d64b0bed6db 100644 --- a/source4/torture/smb2/oplock_break_handler.c +++ b/source4/torture/smb2/oplock_break_handler.c @@ -125,8 +125,8 @@ void torture_wait_for_oplock_break(struct torture_context *tctx) bool timesup = false; int old_count = break_info.count; - /* Wait .1 seconds for an oplock break */ - ne = tevent_timeval_current_ofs(0, 100000); + /* Wait 1 second for an oplock break */ + ne = tevent_timeval_current_ofs(0, 1000000); te = tevent_add_timer(tctx->ev, tmp_ctx, ne, timeout_cb, ×up); if (te == NULL) { |