BASE-DEFER_OPEN: be less strict with to late responses
authorStefan Metzmacher <metze@samba.org>
Tue, 26 Feb 2008 09:31:37 +0000 (10:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 26 Feb 2008 09:31:37 +0000 (10:31 +0100)
The server might be just busy.

metze
(This used to be commit 16c60cd347a42a2d98753585cbefddc948e2860f)

source4/torture/basic/base.c

index 42d7ddaaa12e4c60c7a6a4c181e227eb51434b0b..66f9359744d5b6217cf42c016942bb5ccf94fa5d 100644 (file)
@@ -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;