init
----

# Set up two nodes, each with one store.
add node=n1 store=s1
----

add node=n2 store=s2
----

# Add a msg to be piggybacked from n1 to n2.
piggyback from=n1 node=n2 store=s1 range=r1
----

# Note that it is pending.
pending-piggybacks from=n1 to=n2
----
ranges: r1

# Send a raft message for r10 from n1 to n2, each node holding a replica with
# id=1,2 respectively. We expect the msg to be piggybacked here.
send range=r10 from=n1/s1/1 to=n2/s2/2 commit=1
----

# Note that it no longer pending, but was not dropped.
pending-piggybacks from=n1 to=n2
----
ranges: none

metrics
----
node=n1: dispatches-dropped=0
node=n2: dispatches-dropped=0
