loop/staticaddr/deposit
Boris Nagaev aa699b16e6
staticaddr: deflake deposit manager test
The sqlite and postgres race jobs were both hanging in
deposit.TestManager. The test was observing the manager through
implementation details that were not safe to share with the manager
itself:

- it replaced the manager's internal finalizedDepositChan and then
  waited on the same channel the manager consumes
- it reused package-level block and confirmation channels across runs
- it treated confirmationHeight+expiry as the last pre-expiry block
  even though the production IsExpired check uses >=
- it relied on scheduler timing when asserting that no sign request
  had happened yet

Make the test assert on stable effects instead of internal channel
ownership:

- create per-test notifier channels in the test context
- run the manager from a cancellable t.Context-derived context and
  assert clean shutdown
- send the actual last pre-expiry height, then the expiry height
- wait for the expiry sign and publish steps with bounded timeouts
- verify finalization by waiting for the manager to remove the
  deposit from activeDeposits instead of racing its private
  finalization channel

This keeps the test aligned with the production expiry semantics
and removes the race that only showed up reliably under -race.
2026-04-14 04:10:33 -05:00
..
actions.go multi: factor out sweep fee clamping function 2026-01-15 03:06:22 -05:00
deposit.go staticaddr: channel open states for deposit and fsm 2026-02-26 20:57:26 +01:00
fsm.go lint: fix linter issues 2026-03-09 14:39:45 +01:00
interface.go staticaddr: method to fetch deposits by outpoints 2025-07-29 15:52:54 +02:00
log.go multi: update lnd compile-time dependency to v0.19.0 2025-03-10 22:59:49 +01:00
manager.go Revert "staticaddr: support dynamic deposit confirmation requirements" 2026-03-13 11:18:42 +01:00
manager_test.go staticaddr: deflake deposit manager test 2026-04-14 04:10:33 -05:00
sql_store.go staticaddr: remove redundant pgx.ErrNoRows checks 2026-03-04 18:33:40 -05:00
sql_store_test.go staticaddr: remove redundant pgx.ErrNoRows checks 2026-03-04 18:33:40 -05:00