lnd/watchtower/wtclient
Gijs van Dam 09379d0381 wtclient: fix race conditions locking tests
This commit fixes two flaky test scenarios:

1. testRemoveLockedAddr: Add synchronization to wait for the dial to
   start before asserting that the address is locked. Previously, the
   test could race and check the lock state before session negotiation
   began.

2. testTowerSwitch: Use wait.Predicate for RemoveTower since the
   address may still be locked by an active session, causing
   intermittent failures.
2026-02-12 13:02:02 +01:00
..
addr_iterator.go wtclient: add clarifying comments to the AddressIterator 2023-03-30 14:46:56 +02:00
addr_iterator_test.go wtclient: make addr iterator panic safe 2023-03-30 12:29:41 +02:00
backup_task.go watchtower: fix comments on breach hint and key 2024-10-25 00:07:04 +03:00
backup_task_internal_test.go multi: update to fn v2 2024-12-04 13:19:00 -07:00
candidate_iterator.go wtclient: make addr iterator panic safe 2023-03-30 12:29:41 +02:00
candidate_iterator_test.go watchtower/wtclient: add Copy method to AddressIterator 2023-03-20 16:51:32 +02:00
client.go refactor: use maps.Copy for cleaner map handling 2025-03-25 01:19:55 +08:00
client_test.go wtclient: fix race conditions locking tests 2026-02-12 13:02:02 +01:00
errors.go wtclient: spin session key indices if required 2023-03-31 12:05:58 +02:00
fuzz_test.go wtclient: AddressIterator fuzz test 2023-06-01 08:46:45 -05:00
interface.go wtdb: add TerminateSession method 2024-02-20 14:44:11 +02:00
log.go multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
manager.go multi: update to fn v2 2024-12-04 13:19:00 -07:00
queue.go multi: update more loggers to the v2 type 2024-10-22 17:03:56 +02:00
queue_test.go multi: update more loggers to the v2 type 2024-10-22 17:03:56 +02:00
sess_close_min_heap.go watchtowers: add thread safe min-heap 2023-03-20 16:51:32 +02:00
sess_close_min_heap_test.go watchtowers: add thread safe min-heap 2023-03-20 16:51:32 +02:00
session_negotiator.go multi: update more loggers to the v2 type 2024-10-22 17:03:56 +02:00
session_queue.go multi: update more loggers to the v2 type 2024-10-22 17:03:56 +02:00
stats.go lnrpc+wtclient: refactor ClientStats 2023-11-28 09:54:02 +02:00