htlcswitch: Fix failure error handling on outgoing adds.

This commit is contained in:
Jim Posen
2017-12-04 17:28:16 -08:00
committed by Olaoluwa Osuntokun
parent 813c012ffe
commit 88dc73adb0
6 changed files with 66 additions and 58 deletions

View File

@@ -270,7 +270,6 @@ func TestSwitchCancel(t *testing.T) {
outgoingChanID: bobChannelLink.ShortChanID(),
outgoingHTLCID: 0,
amount: 1,
isObfuscated: true,
htlc: &lnwire.UpdateFailHTLC{},
}
@@ -373,7 +372,6 @@ func TestSwitchAddSamePayment(t *testing.T) {
outgoingChanID: bobChannelLink.ShortChanID(),
outgoingHTLCID: 0,
amount: 1,
isObfuscated: true,
htlc: &lnwire.UpdateFailHTLC{},
}
@@ -397,7 +395,6 @@ func TestSwitchAddSamePayment(t *testing.T) {
outgoingChanID: bobChannelLink.ShortChanID(),
outgoingHTLCID: 1,
amount: 1,
isObfuscated: true,
htlc: &lnwire.UpdateFailHTLC{},
}
@@ -500,7 +497,6 @@ func TestSwitchSendPayment(t *testing.T) {
outgoingChanID: aliceChannelLink.ShortChanID(),
outgoingHTLCID: 0,
amount: 1,
isObfuscated: true,
htlc: &lnwire.UpdateFailHTLC{
Reason: reason,
},
@@ -522,7 +518,6 @@ func TestSwitchSendPayment(t *testing.T) {
packet = &htlcPacket{
outgoingChanID: aliceChannelLink.ShortChanID(),
outgoingHTLCID: 1,
isObfuscated: true,
htlc: &lnwire.UpdateFailHTLC{
Reason: reason,
},