mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
Runs the storage conformance suite, the schema migration, an alarm-woken sleep across an eviction, and a turn recovered through the recovery alarm in workerd via @cloudflare/vitest-plugin (npm run test:workers). fix(durable): decline background timers in Cloudflare Workers. With nodejs_compat, timers have an unref(), so the idle-memory timers were armed and a pending one kept a Durable Object from hibernating or being evicted.
10 lines
310 B
JSON
10 lines
310 B
JSON
{
|
|
"name": "pi-durable-test-workers",
|
|
"main": "./worker.ts",
|
|
"compatibility_date": "2026-10-01",
|
|
"compatibility_flags": ["nodejs_compat"],
|
|
"durable_objects": {
|
|
"bindings": [{ "name": "SESSIONS", "class_name": "TestSession" }]
|
|
},
|
|
"migrations": [{ "tag": "v1", "new_sqlite_classes": ["TestSession"] }]
|
|
}
|