Commit 3c5ac70
committed
fix(test): reduce flakiness in TTL boundary test
Change timestamp from `now - 999` to `now - 900` to provide a 100ms
buffer for test execution time. The test was flaky because between
creating the timestamp and checking isFresh(), enough time could pass
to make the record exactly at or past the 1000ms TTL boundary.
This fixes intermittent failures where the test expected true but got
false due to timing issues.1 parent 413a8c6 commit 3c5ac70
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
0 commit comments