RecoverStaleChatsForTest exposes the unexported stale-recovery loop so tests can assert the recovery state machine without waiting for the periodic ticker.
(ctx context.Context, server *Server)
| 46 | // so tests can assert the recovery state machine without waiting for |
| 47 | // the periodic ticker. |
| 48 | func RecoverStaleChatsForTest(ctx context.Context, server *Server) { |
| 49 | server.recoverStaleChats(ctx) |
| 50 | } |
| 51 | |
| 52 | // InsertSyntheticToolResultsTxForTest exposes the unexported helper |
| 53 | // so tests can verify the dedup path against pre-existing tool |
no test coverage detected