From 6663201fe73453e1d7bfb81eecd6dcdf7f55d9f1 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 11 Sep 2014 18:08:10 +0200 Subject: [PATCH] s4:torture:base: be even more generous in the defer_open test After 1600 consecutive runs, the test failed for me again on a busy server with elapsed time 1.82s. setting the absolute generosity to 2 gives us room up to 2.15. That should hopefully suffice. Signed-off-by: Michael Adam --- source4/torture/basic/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/torture/basic/base.c b/source4/torture/basic/base.c index 6a792b2..712d89d 100644 --- a/source4/torture/basic/base.c +++ b/source4/torture/basic/base.c @@ -697,7 +697,7 @@ static bool run_deferopen(struct torture_context *tctx, struct smbcli_state *cli torture_comment(tctx, "pid %u: create[%d,%d] " "time elapsed: %.2f (1 sec = %.2f)\n", (unsigned)getpid(), i, j, e, sec); - if (e < (0.5 * sec) || e > ((1.5 * sec) + 1.5)) { + if (e < (0.5 * sec) || e > ((1.5 * sec) + 2)) { torture_comment(tctx, "pid %u: create[%d,%d] " "timing incorrect\n", (unsigned)getpid(), i, j); -- 1.9.1