gsxdsm
207d2b899a
test: remove real-time waits from slow test files (FN-5048)
...
Replace real wall-clock waits and per-test rebuilds in the slowest test files
with deterministic seams. No assertions weakened, no timeouts widened, no
retries added — anti-pattern removal only.
- insights-routes.test.ts: boot the server + store ONCE in beforeAll (was a full
createServer + TaskStore.init per test x24), reset insight tables per test for
isolation, drive the sweeper via fake timers. Test-execution time ~3.7s -> ~0.8s.
- db.test.ts: convert the fixed 150ms write-lock hold to manual stdin signal-
release; keeps the real OS-lock contention under test, removes 2x150ms dead
wait. Fixed a real EPIPE on redundant release. 152 pass, non-flaky over 8 runs.
- mission-store.test.ts / agent-store.test.ts: replace real setTimeout sleeps
used only to force distinct timestamps with a controlled clock (vi.setSystemTime
/ injected renewedAt). agent-store assertions strengthened to pin exact values.
- in-process-runtime.test.ts: fake the one real 25ms sleep, drop its inflated
30s per-test timeout.
Honest note: the timestamp-sleep removals are small absolute wins (the headline
per-file durations were full-suite shard contention, not in-file dead time) but
eliminate the FN-5048 real-wait anti-pattern. workflow-routes.test.ts was
evaluated for splitting and deliberately NOT split — measured A/B showed the
split regressed wall-clock (the file is import/transform-bound, already amortized
by installInMemoryDbSnapshot), so splitting only multiplies fixed import cost.
Verified: core 612/612, dashboard 24/24, engine 78/78; typecheck + eslint clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-25 22:08:41 -07:00
..
2026-06-25 21:05:33 -07:00
2026-05-23 02:29:38 -07:00
2026-06-15 02:30:41 -07:00
2026-05-31 13:50:23 -07:00
2026-05-20 15:54:44 -07:00
2026-05-29 20:05:14 -07:00
2026-06-09 12:50:26 -07:00
2026-05-28 21:23:48 -07:00
2026-05-21 12:04:58 -07:00
2026-05-19 17:19:02 -07:00
2026-05-23 22:09:25 -03:00
2026-06-25 22:08:41 -07:00
2026-06-13 11:39:37 -07:00
2026-06-13 04:54:59 -07:00
2026-05-01 05:04:05 -07:00
2026-06-04 22:53:02 -07:00
2026-06-22 01:37:59 -07:00
2026-05-08 20:30:40 -07:00
2026-06-03 17:14:42 -07:00
2026-06-23 10:30:50 -07:00
2026-05-13 23:41:35 -07:00
2026-06-23 23:35:33 -07:00
2026-05-13 23:41:35 -07:00
2026-04-29 20:27:04 -07:00
2026-06-20 22:47:39 -07:00
2026-05-05 06:32:33 -07:00
2026-06-11 20:44:52 -07:00
2026-06-23 16:23:28 -07:00
2026-06-22 03:34:15 -07:00
2026-06-03 13:51:13 -07:00
2026-06-13 23:20:06 -07:00
2026-06-21 16:23:42 -07:00
2026-06-07 20:43:44 -07:00
2026-06-22 23:18:28 -07:00
2026-05-21 12:49:50 -07:00
2026-05-18 12:31:21 -07:00
2026-06-22 03:04:21 -07:00
2026-05-20 08:23:40 -07:00
2026-05-23 00:03:12 -07:00
2026-06-09 15:21:39 -07:00
2026-06-15 12:34:44 -07:00
2026-06-15 02:30:41 -07:00
2026-06-15 02:30:41 -07:00
2026-06-04 16:16:50 -07:00
2026-06-13 21:23:39 -07:00
2026-05-03 11:06:27 -07:00
2026-06-25 21:05:33 -07:00
2026-06-01 08:23:02 -07:00
2026-05-19 03:21:18 -07:00
2026-04-28 14:25:55 -07:00
2026-06-04 22:37:51 -07:00
2026-06-07 23:03:38 -07:00
2026-05-19 22:50:39 -07:00
2026-05-14 19:26:58 -07:00
2026-05-13 12:30:45 -07:00
2026-05-19 19:28:05 -07:00
2026-05-29 10:23:59 -07:00
2026-05-06 19:55:55 -07:00
2026-06-25 21:05:33 -07:00
2026-05-14 00:58:44 -07:00
2026-05-03 23:08:05 -07:00
2026-06-22 03:34:14 -07:00
2026-05-30 22:53:24 -07:00
2026-05-29 07:11:00 -07:00
2026-06-03 15:32:29 -07:00
2026-06-25 08:35:44 -07:00
2026-06-03 17:57:00 -07:00
2026-05-14 04:32:42 -07:00
2026-05-14 04:32:43 -07:00
2026-06-23 08:21:10 -07:00
2026-05-26 21:57:31 -07:00
2026-05-16 17:31:09 -07:00
2026-06-23 17:41:30 -07:00
2026-05-21 12:04:58 -07:00
2026-06-19 01:56:52 -07:00
2026-06-05 20:05:29 -07:00
2026-06-13 21:09:12 -07:00
2026-06-22 19:48:50 -07:00
2026-06-25 20:12:20 -07:00
2026-06-25 20:12:20 -07:00
2026-06-25 20:12:20 -07:00
2026-05-13 20:20:26 -07:00
2026-05-28 15:04:41 -07:00
2026-05-26 21:57:31 -07:00
2026-05-12 18:26:58 -07:00
2026-06-11 20:27:29 -07:00
2026-05-23 09:59:50 -07:00
2026-05-12 09:06:54 -07:00
2026-05-28 13:02:30 -07:00
2026-05-21 16:30:31 -07:00
2026-05-12 17:04:33 -07:00
2026-06-25 16:11:45 -07:00
2026-05-16 23:45:17 -07:00
2026-06-03 17:14:42 -07:00
2026-06-13 16:16:52 -07:00
2026-05-30 09:43:02 -07:00
2026-06-13 16:16:52 -07:00
2026-06-19 23:50:37 +00:00
2026-05-07 23:21:05 -07:00
2026-05-10 19:13:05 -07:00
2026-05-16 17:31:09 -07:00
2026-06-25 19:35:05 -07:00
2026-05-10 19:13:05 -07:00
2026-05-08 13:43:38 -07:00
2026-06-23 17:31:52 -07:00
2026-06-04 12:44:43 -07:00
2026-06-07 21:19:10 -07:00
2026-06-04 07:34:02 -07:00
2026-06-07 21:19:10 -07:00
2026-05-19 19:28:05 -07:00
2026-04-23 14:11:04 -07:00
2026-04-23 14:11:04 -07:00
2026-06-15 19:44:17 -07:00
2026-06-05 20:05:29 -07:00
2026-06-05 22:49:39 -07:00
2026-06-05 20:20:25 -07:00
2026-06-21 03:32:53 -07:00
2026-06-23 20:58:31 -07:00
2026-05-29 20:05:14 -07:00
2026-06-05 23:06:46 -07:00
2026-06-11 21:00:23 -07:00
2026-06-04 22:53:02 -07:00
2026-04-23 23:02:35 -07:00
2026-05-13 21:52:40 -07:00
2026-06-12 15:57:12 -07:00
2026-05-04 13:17:57 -07:00
2026-05-26 23:41:28 -07:00
2026-05-14 22:16:44 -07:00
2026-06-07 23:03:38 -07:00
2026-06-22 03:34:15 -07:00
2026-05-17 02:08:01 -07:00
2026-05-21 00:17:33 -07:00
2026-05-15 16:38:45 -07:00
2026-04-15 16:32:16 -07:00
2026-06-25 08:34:44 -07:00
2026-06-25 16:22:40 -07:00
2026-06-08 19:13:14 -07:00
2026-05-28 21:23:48 -07:00
2026-06-25 08:35:44 -07:00
2026-05-19 14:22:11 -07:00
2026-06-25 08:35:44 -07:00
2026-05-03 01:15:56 -05:00
2026-06-19 16:47:34 -07:00
2026-04-27 08:33:03 -07:00
2026-06-09 15:50:53 -07:00
2026-05-23 14:26:57 -07:00
2026-05-30 21:53:00 -07:00
2026-05-14 05:55:16 -07:00
2026-06-04 14:01:55 -07:00
2026-06-17 19:52:20 -07:00
2026-06-19 16:47:34 -07:00
2026-05-31 23:24:53 -07:00
2026-06-18 00:39:01 -07:00
2026-06-23 10:30:50 -07:00
2026-05-12 17:24:44 -07:00
2026-05-14 08:24:01 -07:00
2026-05-28 21:23:48 -07:00
2026-05-28 21:23:48 -07:00
2026-06-17 15:11:55 -07:00
2026-06-12 06:49:29 -07:00
2026-05-18 00:53:23 -07:00
2026-06-16 15:08:24 -07:00
2026-06-25 03:44:21 -07:00
2026-06-09 03:53:34 -07:00
2026-04-23 23:02:35 -07:00
2026-05-19 19:28:05 -07:00
2026-06-25 14:43:41 -07:00
2026-05-08 18:59:08 -07:00
2026-06-24 23:32:52 -07:00
2026-06-04 07:34:02 -07:00
2026-06-23 15:44:52 -07:00
2026-06-09 09:00:46 -07:00
2026-06-21 18:25:54 -07:00
2026-06-22 19:48:50 -07:00
2026-06-11 08:43:27 -07:00
2026-06-11 08:43:27 -07:00
2026-05-31 08:32:01 -07:00
2026-05-28 21:23:48 -07:00
2026-06-22 19:48:50 -07:00
2026-06-11 08:43:28 -07:00
2026-06-09 20:44:45 -07:00
2026-06-22 02:19:17 -07:00
2026-06-21 23:02:46 -07:00
2026-06-25 08:34:44 -07:00
2026-06-12 15:51:50 -07:00
2026-06-25 08:34:44 -07:00
2026-06-21 09:00:40 -07:00
2026-05-18 01:50:22 -07:00
2026-05-22 22:43:26 -07:00
2026-06-04 13:04:15 -07:00
2026-06-12 12:49:34 -07:00
2026-06-22 19:11:08 -07:00
2026-05-18 11:01:32 -07:00
2026-05-23 15:13:17 -07:00
2026-05-16 20:54:33 -07:00
2026-05-18 15:51:01 -07:00
2026-05-15 22:18:09 -07:00
2026-05-20 15:54:44 -07:00