mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-09-28 23:09:04 +00:00
trying to find a short err testcase
This commit is contained in:
parent
7105dc8d8b
commit
5575d63bc0
@ -2540,7 +2540,7 @@ local default_rsync = {
|
|||||||
-----
|
-----
|
||||||
-- Default delay
|
-- Default delay
|
||||||
--
|
--
|
||||||
delay = 10,
|
delay = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -2653,7 +2653,7 @@ local default_rsyncssh = {
|
|||||||
-----
|
-----
|
||||||
-- Default delay.
|
-- Default delay.
|
||||||
--
|
--
|
||||||
delay = 10,
|
delay = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
-----
|
-----
|
||||||
|
@ -6,7 +6,7 @@ require("posix")
|
|||||||
dofile("tests/testlib.lua")
|
dofile("tests/testlib.lua")
|
||||||
|
|
||||||
-- always makes the same "random", so failures can be debugged.
|
-- always makes the same "random", so failures can be debugged.
|
||||||
math.randomseed(2)
|
math.randomseed(os.getenv("SEED"))
|
||||||
|
|
||||||
local tdir = mktempd().."/"
|
local tdir = mktempd().."/"
|
||||||
cwriteln("using ", tdir, " as test root")
|
cwriteln("using ", tdir, " as test root")
|
||||||
@ -245,7 +245,7 @@ local function rmfile()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local dice = {
|
local dice = {
|
||||||
{ 1, sleep },
|
{ 10, sleep },
|
||||||
{ 20, mkfile },
|
{ 20, mkfile },
|
||||||
{ 20, mkdir },
|
{ 20, mkdir },
|
||||||
{ 20, mvdir },
|
{ 20, mvdir },
|
||||||
@ -259,7 +259,7 @@ for i, d in ipairs(dice) do
|
|||||||
d[1] = ndice
|
d[1] = ndice
|
||||||
end
|
end
|
||||||
|
|
||||||
for ai=1,5000 do
|
for ai=1,20 do
|
||||||
-- throw a die what to do
|
-- throw a die what to do
|
||||||
local acn = math.random(ndice)
|
local acn = math.random(ndice)
|
||||||
for i, d in ipairs(dice) do
|
for i, d in ipairs(dice) do
|
||||||
@ -271,7 +271,7 @@ for ai=1,5000 do
|
|||||||
end
|
end
|
||||||
|
|
||||||
cwriteln("waiting for Lsyncd to finish its jobs.")
|
cwriteln("waiting for Lsyncd to finish its jobs.")
|
||||||
posix.sleep(20)
|
posix.sleep(10)
|
||||||
|
|
||||||
cwriteln("killing the Lsyncd daemon")
|
cwriteln("killing the Lsyncd daemon")
|
||||||
posix.kill(pid)
|
posix.kill(pid)
|
||||||
|
Loading…
Reference in New Issue
Block a user