RUN  v4.1.1 /home/sawyer/projects/bb/.claude/worktrees/wf_d5c47f31-487-2/apps/server stdout | test/services/plugins/plugin-database-handle-reuse.test.ts > storage.database() handle reuse (#1919) > returns one reused handle per plugin instead of opening a connection per call [#1919] 200 database() calls -> 200 distinct handles; open fds under /tmp/bb-plugin-db-reuse-8Qj7MN/data/plugins/chatty: { 'data.db-wal': 199, 'data.db': 200, 'data.db-shm': 1 } ❯  @bb/server  test/services/plugins/plugin-database-handle-reuse.test.ts (1 test | 1 failed) 241ms  × returns one reused handle per plugin instead of opening a connection per call 240ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯  FAIL   @bb/server  test/services/plugins/plugin-database-handle-reuse.test.ts > storage.database() handle reuse (#1919) > returns one reused handle per plugin instead of opening a connection per call AssertionError: expected 200 to be 1 // Object.is equality - Expected + Received - 1 + 200  ❯ test/services/plugins/plugin-database-handle-reuse.test.ts:123:27 121| 122| // Contract (backend-contract.ts / fake-plugin-host.ts): one reuse… 123| expect(distinct.size).toBe(1); // FAILS on d81fee6f: 200 distinct …  | ^ 124| expect(fds["data.db"] ?? 0).toBeLessThanOrEqual(1); // FAILS: 200 … 125| }); ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯  Test Files  1 failed (1)  Tests  1 failed (1)  Start at  15:03:50  Duration  2.75s (transform 1.39s, setup 0ms, import 2.43s, tests 241ms, environment 0ms)