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 committed 2017-10-02 22:14:14 -07:00
1 parent 3ba70fe6ec
commit 7eb0e56406
1 file changed
+1 -1
+1 -1
View File
@@ -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