routing: modify TestSendPaymentRouteFailureFallback to use non-critical error

In this commit we modify the existing
TestSendPaymentRouteFailureFallback to use a non-critical error aside
from FailChannelDisabled. This is necessary as the behavior of the
current error handling can fail due to us sending in a nil error.
This commit is contained in:
Olaoluwa Osuntokun 2017-10-02 22:04:01 -07:00
parent 3ba70fe6ec
commit 7eb0e56406
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -179,7 +179,7 @@ func TestSendPaymentRouteFailureFallback(t *testing.T) {
_ *lnwire.UpdateAddHTLC, _ *sphinx.Circuit) ([32]byte, error) {
if ctx.aliases["luoji"].IsEqual(n) {
return [32]byte{}, &lnwire.FailChannelDisabled{}
return [32]byte{}, &lnwire.FailUnknownNextPeer{}
}
return preImage, nil