mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-20 13:34:32 +01:00
fundingmanager test: check that error is sent on timeout
This commit is contained in:
parent
d20cb8e2f6
commit
3d964628f0
1 changed files with 6 additions and 0 deletions
|
@ -1447,6 +1447,9 @@ func TestFundingManagerFundingTimeout(t *testing.T) {
|
|||
Height: fundingBroadcastHeight + 288,
|
||||
}
|
||||
|
||||
// Bob should have sent an Error message to Alice.
|
||||
assertErrorSent(t, bob.msgChan)
|
||||
|
||||
// Should not be pending anymore.
|
||||
assertNumPendingChannelsBecomes(t, bob, 0)
|
||||
}
|
||||
|
@ -1511,6 +1514,9 @@ func TestFundingManagerFundingNotTimeoutInitiator(t *testing.T) {
|
|||
// Since Alice was the initiator, the channel should not have timed out
|
||||
assertNumPendingChannelsRemains(t, alice, 1)
|
||||
|
||||
// Bob should have sent an Error message to Alice.
|
||||
assertErrorSent(t, bob.msgChan)
|
||||
|
||||
// Since Bob was not the initiator, the channel should timeout
|
||||
assertNumPendingChannelsBecomes(t, bob, 0)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue