mirror of
https://github.com/aljazceru/lspd.git
synced 2026-01-06 23:54:24 +01:00
fix non-asserting assertion
This commit is contained in:
@@ -59,7 +59,7 @@ func testOpenZeroConfChannelOnReceive(p *testParams) {
|
||||
|
||||
// Make sure capacity is correct
|
||||
chans := p.BreezClient().Node().GetChannels()
|
||||
assert.Len(p.t, chans, 1)
|
||||
assert.Equal(p.t, 1, len(chans))
|
||||
c := chans[0]
|
||||
AssertChannelCapacity(p.t, outerAmountMsat, c.CapacityMsat)
|
||||
}
|
||||
@@ -114,7 +114,7 @@ func testOpenZeroConfSingleHtlc(p *testParams) {
|
||||
|
||||
// Make sure capacity is correct
|
||||
chans := p.BreezClient().Node().GetChannels()
|
||||
assert.Len(p.t, chans, 1)
|
||||
assert.Equal(p.t, 1, len(chans))
|
||||
c := chans[0]
|
||||
AssertChannelCapacity(p.t, outerAmountMsat, c.CapacityMsat)
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ func testZeroReserve(p *testParams) {
|
||||
|
||||
// Make sure balance is correct
|
||||
chans := p.BreezClient().Node().GetChannels()
|
||||
assert.Len(p.t, chans, 1)
|
||||
assert.Equal(p.t, 1, len(chans))
|
||||
|
||||
c := chans[0]
|
||||
assert.Equal(p.t, c.RemoteReserveMsat, c.CapacityMsat/100)
|
||||
|
||||
Reference in New Issue
Block a user