mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
Started from CI failure of TestSweepBatcherHandleSweepRace/loopdb [1] that surfaced ErrBatcherShuttingDown when the AddSweep loop caught a batch right as it finished. Reproduced via: go test ./sweepbatcher -run TestSweepBatcherHandleSweepRace/loopdb -cpu=12,4,8 -count=1 Discovered that handleSweeps treated ErrBatchShuttingDown from batch.addSweeps as fatal, so the batcher exited even though the sweep was already confirmed. Fixed by treating that error as "batch already done" so we fall through to the persisted status/monitorSpend path, and added a regression test that deterministically simulates the shutdown window. New regression test added: go test ./sweepbatcher -run TestSweepBatcherHandleBatchShutdown [1] https://github.com/lightninglabs/loop/actions/runs/19282552307/job/55136597881?pr=1041 |
||
|---|---|---|
| .. | ||
| greedy_batch_selection.go | ||
| greedy_batch_selection_test.go | ||
| log.go | ||
| presigned.go | ||
| presigned_test.go | ||
| store.go | ||
| store_mock.go | ||
| sweep_batch.go | ||
| sweep_batch_test.go | ||
| sweep_batcher.go | ||
| sweep_batcher_presigned_test.go | ||
| sweep_batcher_test.go | ||