From 5575d63bc0e25cf98415f1d487ec1bd6f63952d4 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Sun, 21 Nov 2010 00:02:49 +0000 Subject: [PATCH] trying to find a short err testcase --- lsyncd.lua | 4 ++-- tests/randrsync.lua | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lsyncd.lua b/lsyncd.lua index 8674974..73df7d0 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -2540,7 +2540,7 @@ local default_rsync = { ----- -- Default delay -- - delay = 10, + delay = 5, } @@ -2653,7 +2653,7 @@ local default_rsyncssh = { ----- -- Default delay. -- - delay = 10, + delay = 5, } ----- diff --git a/tests/randrsync.lua b/tests/randrsync.lua index b6368ab..5733a0b 100755 --- a/tests/randrsync.lua +++ b/tests/randrsync.lua @@ -6,7 +6,7 @@ require("posix") dofile("tests/testlib.lua") -- always makes the same "random", so failures can be debugged. -math.randomseed(2) +math.randomseed(os.getenv("SEED")) local tdir = mktempd().."/" cwriteln("using ", tdir, " as test root") @@ -245,7 +245,7 @@ local function rmfile() end local dice = { - { 1, sleep }, + { 10, sleep }, { 20, mkfile }, { 20, mkdir }, { 20, mvdir }, @@ -259,7 +259,7 @@ for i, d in ipairs(dice) do d[1] = ndice end -for ai=1,5000 do +for ai=1,20 do -- throw a die what to do local acn = math.random(ndice) for i, d in ipairs(dice) do @@ -271,7 +271,7 @@ for ai=1,5000 do end cwriteln("waiting for Lsyncd to finish its jobs.") -posix.sleep(20) +posix.sleep(10) cwriteln("killing the Lsyncd daemon") posix.kill(pid)