keryx 0.29.1 → 0.29.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/initializers/redis.ts +1 -0
- package/package.json +1 -1
- package/testing/index.ts +8 -4
- package/tsconfig.json +1 -1
package/initializers/redis.ts
CHANGED
package/package.json
CHANGED
package/testing/index.ts
CHANGED
|
@@ -16,16 +16,20 @@ export {
|
|
|
16
16
|
} from "./websocket";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* Generous lifecycle hook timeout (
|
|
19
|
+
* Generous lifecycle hook timeout (60s) for `beforeAll` / `afterAll`.
|
|
20
20
|
*
|
|
21
21
|
* `api.start()` and `api.stop()` connect to Redis, Postgres, run migrations,
|
|
22
|
-
*
|
|
23
|
-
*
|
|
22
|
+
* load plugins, bring up workers, and start servers. That can comfortably
|
|
23
|
+
* exceed 15s on a fresh CI runner with Docker service containers, especially
|
|
24
|
+
* with plugins loaded. If it times out Bun aborts the hook and `api.stop()`
|
|
25
|
+
* runs against partially-initialized state, which cascades into confusing
|
|
26
|
+
* "api.mcp is undefined" style errors during cleanup — always prefer a higher
|
|
27
|
+
* hook timeout over adding null guards to every initializer's `stop()`.
|
|
24
28
|
*
|
|
25
29
|
* Note: `bun:test`'s `setDefaultTimeout` and `bunfig.toml [test].timeout` only
|
|
26
30
|
* apply to `test()` blocks, not lifecycle hooks.
|
|
27
31
|
*/
|
|
28
|
-
export const HOOK_TIMEOUT =
|
|
32
|
+
export const HOOK_TIMEOUT = 60_000;
|
|
29
33
|
|
|
30
34
|
/**
|
|
31
35
|
* Return the actual URL the web server bound to (with resolved port).
|