Skip to content

Commit

Permalink
improve test speed
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Apr 19, 2024
1 parent cd28555 commit ff9e4fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions test/test_filewatch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ function test_fw:test_2()
end
end
end
local retry <const> = 3
local list = {}
local n = 100
local n = retry
while true do
local w, v = fw:select()
if w then
n = 100
n = retry
if not has(list, v) and not equal(v, root:string()) then
list[#list+1] = v
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_subprocess.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function test_subprocess:test_is_running_2()
lt.assertIsUserdata(process.stdin)
process.stdin:close()
while process:is_running() do
thread.sleep(1000)
thread.sleep(10)
end
lt.assertEquals(process:is_running(), false)
safe_exit(process, 13)
Expand Down

0 comments on commit ff9e4fb

Please sign in to comment.