1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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>
This commit is contained in:
Sachin Prabhu 2018-05-28 17:24:54 +05:30 committed by Jeremy Allison
parent 4e685895ea
commit f115b53c72
2 changed files with 4 additions and 4 deletions

View File

@ -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, &timesup);
if (te == NULL) {

View File

@ -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, &timesup);
if (te == NULL) {