Commit 19bf6ec
test(api): fix flaky GetEvaluations tests caused by CreatedAt
The GetEvaluations tests compared the whole response including CreatedAt,
which is generated at request time, so the assertion failed occasionally.
Add normalizeUserEvaluationsCreatedAt to assert CreatedAt is roughly the
current time, then align the expected value so the equality check stays
stable.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent e1f410e commit 19bf6ec
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2359 | 2359 | | |
2360 | 2360 | | |
2361 | 2361 | | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
2362 | 2365 | | |
2363 | 2366 | | |
2364 | 2367 | | |
| |||
2410 | 2413 | | |
2411 | 2414 | | |
2412 | 2415 | | |
| 2416 | + | |
2413 | 2417 | | |
2414 | 2418 | | |
2415 | 2419 | | |
| |||
4959 | 4963 | | |
4960 | 4964 | | |
4961 | 4965 | | |
| 4966 | + | |
| 4967 | + | |
| 4968 | + | |
| 4969 | + | |
| 4970 | + | |
| 4971 | + | |
| 4972 | + | |
| 4973 | + | |
| 4974 | + | |
| 4975 | + | |
| 4976 | + | |
| 4977 | + | |
| 4978 | + | |
| 4979 | + | |
4962 | 4980 | | |
4963 | 4981 | | |
4964 | 4982 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | | - | |
| 719 | + | |
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| 782 | + | |
782 | 783 | | |
783 | 784 | | |
784 | 785 | | |
| |||
0 commit comments