mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 22:46:40 +01:00
Merge pull request #1853 from cfromknecht/short-chan-id-compare
lnwire/lnwire_test: assert nil 0-length sid reply msg
This commit is contained in:
commit
dcd8190c80
1 changed files with 2 additions and 6 deletions
|
@ -711,7 +711,6 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
numChanIDs := rand.Int31n(5000)
|
numChanIDs := rand.Int31n(5000)
|
||||||
|
|
||||||
for i := int32(0); i < numChanIDs; i++ {
|
for i := int32(0); i < numChanIDs; i++ {
|
||||||
req.ShortChanIDs = append(req.ShortChanIDs,
|
req.ShortChanIDs = append(req.ShortChanIDs,
|
||||||
NewShortChanIDFromInt(uint64(r.Int63())))
|
NewShortChanIDFromInt(uint64(r.Int63())))
|
||||||
|
@ -743,12 +742,9 @@ func TestLightningWireProtocol(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
numChanIDs := rand.Int31n(5000)
|
numChanIDs := rand.Int31n(5000)
|
||||||
|
|
||||||
req.ShortChanIDs = make([]ShortChannelID, numChanIDs)
|
|
||||||
for i := int32(0); i < numChanIDs; i++ {
|
for i := int32(0); i < numChanIDs; i++ {
|
||||||
req.ShortChanIDs[i] = NewShortChanIDFromInt(
|
req.ShortChanIDs = append(req.ShortChanIDs,
|
||||||
uint64(r.Int63()),
|
NewShortChanIDFromInt(uint64(r.Int63())))
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
v[0] = reflect.ValueOf(req)
|
v[0] = reflect.ValueOf(req)
|
||||||
|
|
Loading…
Add table
Reference in a new issue