mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
update udp test
This commit is contained in:
parent
edc6810283
commit
acb46253ff
1 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
math.randomseed(43172)
|
for i = 1, 3 do
|
||||||
for i = 1, 15 do
|
|
||||||
debug.log(string.format("iteration %s", i))
|
debug.log(string.format("iteration %s", i))
|
||||||
local complete = false
|
local complete = false
|
||||||
|
|
||||||
|
|
@ -30,6 +29,7 @@ for i = 1, 15 do
|
||||||
end, "udp-data-sender")
|
end, "udp-data-sender")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
app.sleep_until(function () return complete end, nil, 5)
|
app.sleep_until(function () return complete end, nil, 1)
|
||||||
|
assert(complete, "timeout at iteration #"..i)
|
||||||
server:close()
|
server:close()
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue