3 Commits
Author SHA1 Message Date
google-labs-jules[bot] 6e55c37d50 chore(ai): CI health fixes (flaky tests)
- Fix `tests/dm-normalization.test.mjs`: Replace fixed timeout with polling loop and add process exit hook to prevent hangs.
- Fix `tests/nostr/dm-direct-message-flow.test.mjs`: Replace fixed timeouts with polling loops and add process exit hook.
- Fix `detect_flakiness.mjs` path resolution.
2026-01-20 12:39:19 +00:00
google-labs-jules[bot] b285819145 fix(storage): resolve db connection leaks and patch test environment
- Added `db.close()` to exported functions in `js/storage/dmDb.js` to ensure IndexedDB connections are released.
- Patched `tests/test-helpers/setup-localstorage.mjs` to include a `structuredClone` polyfill required by `fake-indexeddb` in Node.js environments.
- Updated `tests/dm-normalization.test.mjs`, `tests/dm-db.test.mjs`, and `tests/nostr/dm-direct-message-flow.test.mjs` to conditionally initialize `fake-indexeddb` to prevent global conflicts.
- Verified fixes by running unit tests and the `scripts/agent/interop-test.mjs` E2E suite.
2026-01-19 16:24:07 +00:00
thePR0M3TH3AN 8f04692165 Add DM normalization and integration tests 2026-01-19 09:32:14 -05:00