From 7eb0e56406582e6c412d8b1456409bfea946a1e4 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 2 Oct 2017 22:04:01 -0700 Subject: [PATCH] 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. --- routing/router_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/router_test.go b/routing/router_test.go index 4df3f2a87..013425f0f 100644 --- a/routing/router_test.go +++ b/routing/router_test.go @@ -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