diff --git a/tests/network_control.cpp b/tests/network_control.cpp index 07ea5e3..487c00d 100644 --- a/tests/network_control.cpp +++ b/tests/network_control.cpp @@ -490,10 +490,13 @@ void deferred_actions() { // In-memory refusals answer at once; a repeat of a waiting action is a duplicate. CHECK(admit(1, 20, 101) == ActionReceipt{20, AdmitStatus::duplicate, 100, 101}); CHECK(admit(1, 21, 150) == ActionReceipt{21, AdmitStatus::outside_window, 100, 150}); - CHECK(a.carry(110).empty() && ledger.lookups == 0); // Nothing rides before `verify`. + const int lookups_before_verify = ledger.lookups; + CHECK(a.carry(110).empty() && ledger.lookups == lookups_before_verify); + // Nothing rides or queries durable records before `verify`. f.server_tick = 101; auto receipts = a.verify(f); - CHECK(ledger.batches == 1 && ledger.lookups == 3 && receipts.size() == 3); + CHECK(ledger.batches == 1 && ledger.lookups == lookups_before_verify + 3 && + receipts.size() == 3); CHECK(receipts[0] == std::pair{std::uint64_t{1}, ActionReceipt{9, AdmitStatus::duplicate, 100, 40}}); CHECK(receipts[1] ==