Fix deferred action lookup assertion
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m56s
Foundation / checks (network) (push) Successful in 15m7s
Foundation / checks (checks) (push) Failing after 17m39s
Foundation / checks (postgres) (push) Failing after 19m59s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 7m23s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m56s
Foundation / checks (network) (push) Successful in 15m7s
Foundation / checks (checks) (push) Failing after 17m39s
Foundation / checks (postgres) (push) Failing after 19m59s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 7m23s
This commit is contained in:
@@ -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] ==
|
||||
|
||||
Reference in New Issue
Block a user