Make a ledger regression fail the scenario harness instead of hanging it
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
c75fc4edc7
commit
9ab4ab4519
1 changed files with 3 additions and 0 deletions
|
|
@ -45,8 +45,11 @@ internal sealed class EditorProbe : IDisposable
|
|||
internal async Task TickAsync()
|
||||
{
|
||||
await ledger.PullAsync();
|
||||
var drained = 0;
|
||||
while (ledger.TryNextPending(out var command))
|
||||
{
|
||||
if (++drained > 10000)
|
||||
throw new InvalidOperationException("The ledger keeps offering answered intents; a regression would otherwise hang the suite.");
|
||||
Executed.Add(command);
|
||||
await node.Database.PutAsync(
|
||||
BrokkrCommandLedger.ReceiptKey(command.commandId),
|
||||
|
|
|
|||
Loading…
Reference in a new issue