From d5721165de90268f865964350d9ea042a51caa6a Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 22 Mar 2018 17:39:21 -0700 Subject: [PATCH] routing: fix TestPathInsufficientCapacity to actually send 1 BTC --- routing/pathfind_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/pathfind_test.go b/routing/pathfind_test.go index f4d7db3f..0a4d4eeb 100644 --- a/routing/pathfind_test.go +++ b/routing/pathfind_test.go @@ -654,7 +654,7 @@ func TestPathInsufficientCapacity(t *testing.T) { // though we have a 2-hop link. target := aliases["sophon"] - const payAmt = btcutil.SatoshiPerBitcoin + payAmt := lnwire.NewMSatFromSatoshis(btcutil.SatoshiPerBitcoin) _, err = findPath(nil, graph, sourceNode, target, ignoredVertexes, ignoredEdges, payAmt) if !IsError(err, ErrNoPathFound) {