Commit 451d523
fix: Cast both sides of comparison and fix flaky timing test
Cast both $value and $oldValue by attribute type before comparison to
handle adapters like MongoDB that don't cast floats on read.
Add usleep before doc4 update to prevent same-millisecond timestamps.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 142b8dd commit 451d523
2 files changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5704 | 5704 | | |
5705 | 5705 | | |
5706 | 5706 | | |
5707 | | - | |
5708 | | - | |
| 5707 | + | |
| 5708 | + | |
| 5709 | + | |
5709 | 5710 | | |
5710 | | - | |
5711 | | - | |
5712 | | - | |
5713 | | - | |
5714 | | - | |
5715 | | - | |
| 5711 | + | |
| 5712 | + | |
| 5713 | + | |
| 5714 | + | |
| 5715 | + | |
| 5716 | + | |
5716 | 5717 | | |
| 5718 | + | |
| 5719 | + | |
| 5720 | + | |
| 5721 | + | |
| 5722 | + | |
| 5723 | + | |
| 5724 | + | |
| 5725 | + | |
5717 | 5726 | | |
5718 | 5727 | | |
5719 | 5728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5834 | 5834 | | |
5835 | 5835 | | |
5836 | 5836 | | |
| 5837 | + | |
5837 | 5838 | | |
5838 | 5839 | | |
5839 | 5840 | | |
| |||
0 commit comments