BASE-DEFER_OPEN: be less strict with to late responses
[ira/wip.git] / 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;