routing/test: set outgoing timelock on non-legacy test cases

Provide valid hop payloads for tests cases that use TLV onion format.
This commit is contained in:
Carla Kirk-Cohen 2023-11-02 14:34:47 -04:00
parent fa78d21975
commit a75bc13230
No known key found for this signature in database
GPG Key ID: 4CA7FE54A6213C91

View File

@ -3474,6 +3474,7 @@ func TestSendToRouteSkipTempErrSuccess(t *testing.T) {
ChannelID: 1,
PubKeyBytes: node.PubKeyBytes,
AmtToForward: payAmt,
OutgoingTimeLock: 120,
MPP: record.NewMPP(payAmt, [32]byte{}),
},
}
@ -3610,6 +3611,7 @@ func TestSendToRouteSkipTempErrTempFailure(t *testing.T) {
ChannelID: 1,
PubKeyBytes: node.PubKeyBytes,
AmtToForward: payAmt,
OutgoingTimeLock: 120,
MPP: record.NewMPP(payAmt, [32]byte{}),
},
}
@ -3691,6 +3693,7 @@ func TestSendToRouteSkipTempErrPermanentFailure(t *testing.T) {
ChannelID: 1,
PubKeyBytes: node.PubKeyBytes,
AmtToForward: payAmt,
OutgoingTimeLock: 120,
MPP: record.NewMPP(payAmt, [32]byte{}),
},
}
@ -3776,6 +3779,7 @@ func TestSendToRouteTempFailure(t *testing.T) {
ChannelID: 1,
PubKeyBytes: node.PubKeyBytes,
AmtToForward: payAmt,
OutgoingTimeLock: 120,
MPP: record.NewMPP(payAmt, [32]byte{}),
},
}