Commit 5fc2d5a
committed
rpc: pin upstream-entry convergence within two ticks
The previous loopback-suppression test asserted that the tick
immediately after a pull pushed zero entries. That contract no
longer holds: the local pushRev advance was removed because it
desynced from the wire-visible appliedPushRev, so the apply's rev
bumps now ride back to the sender on the next pushOnce and the
sender drops them via alreadyApplied().
Rewrite the test to assert the new contract: tick 1 after an
upstream pull may ship redundant entries, but tick 2 is the
no-op, and tick 3 stays settled. This pins that convergence is
bounded at one extra round trip per upstream apply rather than
becoming an unbounded ping-pong, which was the worry the previous
test was guarding against in a stricter form than the system can
now honor.1 parent 9a99d16 commit 5fc2d5a
1 file changed
Lines changed: 30 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
365 | 374 | | |
366 | 375 | | |
367 | 376 | | |
368 | 377 | | |
369 | 378 | | |
370 | 379 | | |
371 | | - | |
372 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
373 | 385 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
381 | 401 | | |
382 | 402 | | |
383 | 403 | | |
| |||
0 commit comments