lnwire: add *OpaqueAddrs case in WriteElements

And then expand the chanbackup unit tests to cover such a case.
This commit is contained in:
Elle Mouton committed 2025-05-23 16:14:47 +02:00
1 parent a15489159a
commit 412e05f85f
4 files changed
+20 -3

No files matched your search

+3 -1
View File
@@ -22,7 +22,9 @@ func TestMultiPackUnpack(t *testing.T) {
t.Fatalf("unable to gen channel: %v", err)
}
single := NewSingle(channel, []net.Addr{addr1, addr2, addr3})
single := NewSingle(
channel, []net.Addr{addr1, addr2, addr3, addr4},
)
originalSingles = append(originalSingles, single)
multi.StaticBackups = append(multi.StaticBackups, single)