Commit c86c084
authored
fix(credential-groups): pin the clock in the enrollment tests (#6812)
`invitationExpiresAt` was dated 2026-08-18T12:00:00Z, and the code under test
compares it against the wall clock. The suite passed until that instant and has
failed for everyone since -- the same commit passed CI at 07:21Z and failed at
14:55Z with no code change between the runs.
Pin the clock to a point inside the invitation window instead. Every existing
date literal keeps its meaning and the suite stops depending on when it runs.
Re-dating the fixture to a later instant would only move the failure.1 parent 34aac38 commit c86c084
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
44 | 61 | | |
45 | 62 | | |
46 | 63 | | |
| |||
0 commit comments