mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
6574299fcc
This test still flakes occasionally, see https://github.com/coder/internal/issues/954#issuecomment-3237154735 The cause appears to be related to the assignment of `time.Now()` as the `LastSeenAt` time when creating a provisioner which can flake with the calculated scheduled next autostart and the code to set then `require.Eventually` the updated provisioner LastSeenAt. Instead we should simply calculate all time values for the stale portion of the test based on the provisioners LastSeenAt value to avoid such issues. Signed-off-by: Callum Styan <callumstyan@gmail.com>