mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-23 07:24:21 +01:00
lnwire/lnwire_test: assert nil 0-length sid reply msg
This commit is contained in:
@@ -711,7 +711,6 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
}
|
||||
|
||||
numChanIDs := rand.Int31n(5000)
|
||||
|
||||
for i := int32(0); i < numChanIDs; i++ {
|
||||
req.ShortChanIDs = append(req.ShortChanIDs,
|
||||
NewShortChanIDFromInt(uint64(r.Int63())))
|
||||
@@ -743,12 +742,9 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||
}
|
||||
|
||||
numChanIDs := rand.Int31n(5000)
|
||||
|
||||
req.ShortChanIDs = make([]ShortChannelID, numChanIDs)
|
||||
for i := int32(0); i < numChanIDs; i++ {
|
||||
req.ShortChanIDs[i] = NewShortChanIDFromInt(
|
||||
uint64(r.Int63()),
|
||||
)
|
||||
req.ShortChanIDs = append(req.ShortChanIDs,
|
||||
NewShortChanIDFromInt(uint64(r.Int63())))
|
||||
}
|
||||
|
||||
v[0] = reflect.ValueOf(req)
|
||||
|
||||
Reference in New Issue
Block a user