mirror of
https://github.com/coder/coder.git
synced 2026-10-30 18:12:29 +08:00
`TestInvalidateTemplatePrebuilds` assumed a stable ordering from preset invalidation results, but the underlying `UPDATE ... RETURNING` query does not guarantee row order. Local WIP schema changes were enough to surface that latent flake when running tests. Update the test to compare invalidated presets as a set instead of by slice position. This keeps the behavior under test the same, while removing dependence on unspecified database row ordering.