Skip to content

Commit dca0465

Browse files
committed
fix(logs): keep a completion failure visible when the ledger-order reader also fails
1 parent 7e0af7b commit dca0465

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/sim/lib/logs/execution/completion-ledger-order.integration.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ describe('completeWorkflowExecution', () => {
145145
})
146146
} finally {
147147
completing = false
148-
await reader
148+
// Settle the reader without letting its error replace a completion failure.
149+
await reader.catch(() => {})
149150
}
151+
await reader
150152

151153
const ledger = await buildCostLedger(executionId)
152154
expect(ledger?.total).toBeCloseTo(EXECUTION_FEE, 8)

0 commit comments

Comments
 (0)