mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-07-26 08:08:45 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user