lnwire: add *OpaqueAddrs case in WriteElements
And then expand the chanbackup unit tests to cover such a case.
This commit is contained in:
4 files changed
+20
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user