mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
test: make some tests more reliable
This commit is contained in:
parent
ed9566bfff
commit
e583574751
3 changed files with 2 additions and 4 deletions
|
|
@ -63,7 +63,6 @@ end
|
|||
---
|
||||
--- @param payloads The state updates received from the server.
|
||||
local function patch(payloads: { SyncPayload })
|
||||
debug.profilebegin("CharmSync")
|
||||
for _, payload in payloads do
|
||||
if payload.type == "init" then
|
||||
Charm.batch(applyInitPayload, payload.data)
|
||||
|
|
@ -71,7 +70,6 @@ local function patch(payloads: { SyncPayload })
|
|||
Charm.batch(applyPatchPayload, payload.data)
|
||||
end
|
||||
end
|
||||
debug.profileend()
|
||||
end
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ end
|
|||
|
||||
--- Triggers garbage collection by creating a large number of tables.
|
||||
local function gc()
|
||||
for _ = 1, 1000 do
|
||||
for _ = 1, 2000 do
|
||||
local _ = table.create(100, 0)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue