Commit b4122ef
authored
Fix eviction-guard test premise after dropping the (pid, server) unique index (#495)
testAddDoesNotEvictRecentRowOnSamePidServer was asserting QueryException,
which fired before #494 because the unique (pid, server) index rejected
the second insert. With the unique constraint dropped, the second insert
succeeds, so the test premise no longer holds and master CI failed.
Reframe the test to verify what it actually cares about: the eviction
guard (`modified <` threshold) inside add() must NOT remove a fresh
row. After the second add() on the same (pid, server), assert the
pre-existing fresh row still exists. Coverage of the threshold check
is preserved; the duplicate-allowed behavior is already covered by
testAddAllowsDuplicatePidServer.1 parent 0e93a9b commit b4122ef
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
311 | 310 | | |
312 | 311 | | |
313 | 312 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
318 | 316 | | |
319 | 317 | | |
320 | 318 | | |
321 | 319 | | |
322 | 320 | | |
323 | 321 | | |
324 | | - | |
| 322 | + | |
325 | 323 | | |
326 | | - | |
327 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
328 | 330 | | |
329 | 331 | | |
330 | 332 | | |
| |||
0 commit comments