Commit 0d48f84
committed
test(pubsub): assert delivery ordering, not completeness, on the bounded path
transient_local_delivery_preserves_order published 500 samples through a
KeepLast(10) subscriber and asserted all 500 arrived. That asserts a
promise no RMW makes: rmw_zenoh_cpp's add_new_message drops the oldest
once message_queue_.size() >= adapted_qos_profile.depth, for every
arriving sample, with no TransientLocal exemption -- the check reads the
history policy only.
The test's stated property is ordering, and its own doc says so. Assert
that instead: a strictly increasing subsequence of what was published.
That catches reordering whether or not anything was dropped, where an
equality check conflated the two failures.
Losslessness is still covered, on the profile that actually promises it,
by keep_all_delivers_every_local_sample.
Also records in the dispatcher docs that both implementations drop
silently w.r.t. the ROS event API: upstream's MESSAGE_LOST comes from
sequence-number gaps among arriving messages, which a depth-drop cannot
produce, so bounding introduces no reporting gap.1 parent 5b6f0c2 commit 0d48f84
2 files changed
Lines changed: 58 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
616 | 629 | | |
617 | 630 | | |
618 | 631 | | |
| |||
655 | 668 | | |
656 | 669 | | |
657 | 670 | | |
658 | | - | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
659 | 687 | | |
660 | 688 | | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
666 | 700 | | |
667 | 701 | | |
668 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
354 | 363 | | |
355 | 364 | | |
356 | 365 | | |
| |||
0 commit comments