mirror of
https://github.com/coder/coder.git
synced 2026-06-04 13:38:21 +00:00
c1421b4ead
Previously, `TestProcessChat_IgnoresStaleControlNotification` could return as soon as `UpdateChatStatus` ran, even though `processChat` still re-read chat state and finished deferred cleanup afterward. That let gomock and quartz teardown race the tail of cleanup and intermittently fail the test. Wait for `processChat` itself to return before asserting the final status, while keeping the existing strict mock expectations intact. Closes https://github.com/coder/internal/issues/1479