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
|
|
@ -7,7 +7,7 @@
|
|||
"publish:npm": "pnpm publish -r --access public",
|
||||
"publish:wally": "pnpm -r --workspace-concurrency 1 publish:wally"
|
||||
},
|
||||
"packageManager": "pnpm@10.17.1",
|
||||
"packageManager": "pnpm@10.22.0",
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.36.0",
|
||||
"@rbxts/compiler-types": "3.0.0-types.0",
|
||||
|
|
|
|||
|
|
@ -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