loop/staticaddr
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
..
address lint: fix linter issues 2026-03-09 14:39:45 +01:00
deposit staticaddr: deflake deposit manager test 2026-04-14 04:10:33 -05:00
loopin Revert "staticaddr: support dynamic deposit confirmation requirements" 2026-03-13 11:18:42 +01:00
openchannel lint: fix linter issues 2026-03-09 14:39:45 +01:00
script multi: update linter, fix issues 2025-03-10 22:59:50 +01:00
staticutil lint: fix linter issues 2026-03-09 14:39:45 +01:00
version multi: do not rename swapserverrpc to looprpc 2024-09-10 09:54:17 -03:00
withdraw lint: fix linter issues 2026-03-09 14:39:45 +01:00
log.go staticaddr: open channel manager 2026-02-26 20:57:26 +01:00