test: align test better with described scenario

Add the tx that was just removed, instead of an earlier one, for
improved clarity.
This commit is contained in:
stickies-v
2026-07-07 16:17:06 +01:00
parent 7ad311be18
commit 191bdcba26

View File

@@ -217,7 +217,7 @@ BOOST_AUTO_TEST_CASE(rejection_at_cap)
// A previously-removed tx can be added again as a brand-new entry.
BOOST_REQUIRE(pb.Remove(fresh).has_value());
BOOST_CHECK_EQUAL(pb.Add(txs[0]), PrivateBroadcast::AddResult::Added);
BOOST_CHECK_EQUAL(pb.Add(fresh), PrivateBroadcast::AddResult::Added);
BOOST_CHECK_EQUAL(pb.GetBroadcastInfo().size(), num_cap);
}