summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-02-26 10:31:37 +0100
committerStefan Metzmacher <metze@samba.org>2008-02-26 10:31:37 +0100
commitdb2a2382d1dfcb9ace4621368feebd700b598625 (patch)
tree2ea032d85e5689b461b2d75a6d8a87a5a8416db0 /source4
parent9ddbdfa02cfaa0df6ce944d6dfecf6850ab0b2f8 (diff)
downloadsamba-db2a2382d1dfcb9ace4621368feebd700b598625.tar.gz
samba-db2a2382d1dfcb9ace4621368feebd700b598625.tar.bz2
samba-db2a2382d1dfcb9ace4621368feebd700b598625.zip
BASE-DEFER_OPEN: be less strict with to late responses
The server might be just busy. metze (This used to be commit 16c60cd347a42a2d98753585cbefddc948e2860f)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/basic/base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/basic/base.c b/source4/torture/basic/base.c
index 42d7ddaaa1..66f9359744 100644
--- a/source4/torture/basic/base.c
+++ b/source4/torture/basic/base.c
@@ -664,7 +664,7 @@ static bool run_deferopen(struct torture_context *tctx, struct smbcli_state *cli
}
if (NT_STATUS_EQUAL(smbcli_nt_error(cli->tree),NT_STATUS_SHARING_VIOLATION)) {
double e = timeval_elapsed(&tv);
- if (e < (0.5 * sec) || e > (1.5 * sec)) {
+ if (e < (0.5 * sec) || e > ((1.5 * sec) + 1)) {
torture_comment(tctx,"Timing incorrect %.2f violation 1 sec == %.2f\n",
e, sec);
return false;