lightninglabs / lightning-dev-site

Lightning Network Daemon Developer Site
25 stars 40 forks source link

[Installation] Tests fail because btcd not found #9

Closed cbarraford closed 6 years ago

cbarraford commented 6 years ago

In the installation documentation, after installing lnd, it suggests to run the test via ...

go install; go test -v -p 1 $(go list ./... | grep -v  '/vendor/')

But these tests fail (multiple times) due to btcd not being installed yet (haven't reached that part of the installation docs yet). So it seems like an order of operations problem. If its agreeable, i can move the tests to later part of the documentation in a PR, if that makes sense to others.

=== RUN   TestFilteredChainView
--- FAIL: TestFilteredChainView (0.28s)
    interface_test.go:759: unable to set up mining node: exec: "btcd": executable file not found in $PATH
FAIL
exit status 1

I've confirmed that installing btcd does make the tests pass.

Here is the full output of running the tests on my machine.

``` go install; go test -v -p 1 $(go list ./... | grep -v '/vendor/')  ✓  15.55  10:07:42 === RUN TestBreachedOutputSerialization --- PASS: TestBreachedOutputSerialization (0.00s) === RUN TestRetributionSerialization --- PASS: TestRetributionSerialization (0.00s) === RUN TestMockRetributionStore === RUN TestMockRetributionStore/mockRetributionStore.Initialization === RUN TestMockRetributionStore/mockRetributionStore.Add/Remove === RUN TestMockRetributionStore/mockRetributionStore.Persistence === RUN TestMockRetributionStore/mockRetributionStore.Overwrite === RUN TestMockRetributionStore/mockRetributionStore.RemoveEmpty --- PASS: TestMockRetributionStore (0.00s) --- PASS: TestMockRetributionStore/mockRetributionStore.Initialization (0.00s) --- PASS: TestMockRetributionStore/mockRetributionStore.Add/Remove (0.00s) --- PASS: TestMockRetributionStore/mockRetributionStore.Persistence (0.00s) --- PASS: TestMockRetributionStore/mockRetributionStore.Overwrite (0.00s) --- PASS: TestMockRetributionStore/mockRetributionStore.RemoveEmpty (0.00s) === RUN TestChannelDBRetributionStore === RUN TestChannelDBRetributionStore/channeldbDBRetributionStore.Initialization === RUN TestChannelDBRetributionStore/channeldbDBRetributionStore.Add/Remove === RUN TestChannelDBRetributionStore/channeldbDBRetributionStore.Persistence === RUN TestChannelDBRetributionStore/channeldbDBRetributionStore.Overwrite === RUN TestChannelDBRetributionStore/channeldbDBRetributionStore.RemoveEmpty --- PASS: TestChannelDBRetributionStore (0.02s) --- PASS: TestChannelDBRetributionStore/channeldbDBRetributionStore.Initialization (0.00s) --- PASS: TestChannelDBRetributionStore/channeldbDBRetributionStore.Add/Remove (0.00s) --- PASS: TestChannelDBRetributionStore/channeldbDBRetributionStore.Persistence (0.01s) --- PASS: TestChannelDBRetributionStore/channeldbDBRetributionStore.Overwrite (0.00s) --- PASS: TestChannelDBRetributionStore/channeldbDBRetributionStore.RemoveEmpty (0.00s) === RUN TestFundingManagerNormalWorkflow --- PASS: TestFundingManagerNormalWorkflow (1.03s) === RUN TestFundingManagerRestartBehavior --- PASS: TestFundingManagerRestartBehavior (2.04s) === RUN TestFundingManagerOfflinePeer --- PASS: TestFundingManagerOfflinePeer (1.53s) === RUN TestFundingManagerFundingTimeout --- PASS: TestFundingManagerFundingTimeout (0.51s) === RUN TestFundingManagerReceiveFundingLockedTwice --- PASS: TestFundingManagerReceiveFundingLockedTwice (2.24s) === RUN TestFundingManagerRestartAfterChanAnn --- PASS: TestFundingManagerRestartAfterChanAnn (1.03s) === RUN TestFundingManagerRestartAfterReceivingFundingLocked --- PASS: TestFundingManagerRestartAfterReceivingFundingLocked (1.83s) === RUN TestNurseryStoreInit --- PASS: TestNurseryStoreInit (0.00s) === RUN TestNurseryStoreIncubate --- PASS: TestNurseryStoreIncubate (0.01s) === RUN TestNurseryStoreFinalize --- PASS: TestNurseryStoreFinalize (0.18s) === RUN TestNurseryStoreGraduate --- PASS: TestNurseryStoreGraduate (0.16s) === RUN TestPeerChannelClosureAcceptFeeResponder === RUN TestPeerChannelClosureAcceptFeeInitiator === RUN TestPeerChannelClosureFeeNegotiationsResponder === RUN TestPeerChannelClosureFeeNegotiationsInitiator === RUN TestKidOutputSerialization --- PASS: TestKidOutputSerialization (0.00s) === RUN TestBabyOutputSerialization --- PASS: TestBabyOutputSerialization (0.00s) --- PASS: TestPeerChannelClosureFeeNegotiationsInitiator (0.03s) --- PASS: TestPeerChannelClosureFeeNegotiationsResponder (0.03s) --- PASS: TestPeerChannelClosureAcceptFeeInitiator (0.03s) --- PASS: TestPeerChannelClosureAcceptFeeResponder (0.04s) PASS ok github.com/lightningnetwork/lnd 10.697s === RUN TestAgentChannelOpenSignal === RUN TestAgentChannelCloseSignal === RUN TestAgentBalanceUpdate === RUN TestAgentImmediateAttach === RUN TestAgentPendingChannelState === RUN TestConstrainedPrefAttachmentNeedMoreChan === RUN TestConstrainedPrefAttachmentSelectEmptyGraph === RUN TestConstrainedPrefAttachmentSelectEmptyGraph/disk_graph === RUN TestConstrainedPrefAttachmentSelectEmptyGraph/mem_graph --- PASS: TestConstrainedPrefAttachmentSelectEmptyGraph (0.03s) --- PASS: TestConstrainedPrefAttachmentSelectEmptyGraph/disk_graph (0.00s) --- PASS: TestConstrainedPrefAttachmentSelectEmptyGraph/mem_graph (0.00s) === RUN TestConstrainedPrefAttachmentSelectTwoVertexes === RUN TestConstrainedPrefAttachmentSelectInsufficientFunds === RUN TestConstrainedPrefAttachmentSelectGreedyAllocation === RUN TestConstrainedPrefAttachmentSelectSkipNodes === RUN TestConstrainedPrefAttachmentSelectTwoVertexes/disk_graph === RUN TestConstrainedPrefAttachmentSelectSkipNodes/disk_graph --- PASS: TestAgentChannelOpenSignal (0.00s) --- PASS: TestConstrainedPrefAttachmentNeedMoreChan (0.00s) === RUN TestConstrainedPrefAttachmentSelectGreedyAllocation/disk_graph === RUN TestConstrainedPrefAttachmentSelectSkipNodes/mem_graph --- PASS: TestConstrainedPrefAttachmentSelectSkipNodes (0.01s) --- PASS: TestConstrainedPrefAttachmentSelectSkipNodes/disk_graph (0.01s) --- PASS: TestConstrainedPrefAttachmentSelectSkipNodes/mem_graph (0.00s) === RUN TestConstrainedPrefAttachmentSelectInsufficientFunds/disk_graph === RUN TestConstrainedPrefAttachmentSelectTwoVertexes/mem_graph --- PASS: TestConstrainedPrefAttachmentSelectTwoVertexes (0.02s) --- PASS: TestConstrainedPrefAttachmentSelectTwoVertexes/disk_graph (0.01s) --- PASS: TestConstrainedPrefAttachmentSelectTwoVertexes/mem_graph (0.00s) === RUN TestConstrainedPrefAttachmentSelectInsufficientFunds/mem_graph --- PASS: TestConstrainedPrefAttachmentSelectInsufficientFunds (0.00s) --- PASS: TestConstrainedPrefAttachmentSelectInsufficientFunds/disk_graph (0.00s) --- PASS: TestConstrainedPrefAttachmentSelectInsufficientFunds/mem_graph (0.00s) --- PASS: TestAgentBalanceUpdate (0.00s) --- PASS: TestAgentChannelCloseSignal (0.00s) === RUN TestConstrainedPrefAttachmentSelectGreedyAllocation/mem_graph --- PASS: TestConstrainedPrefAttachmentSelectGreedyAllocation (0.03s) --- PASS: TestConstrainedPrefAttachmentSelectGreedyAllocation/disk_graph (0.03s) --- PASS: TestConstrainedPrefAttachmentSelectGreedyAllocation/mem_graph (0.00s) --- PASS: TestAgentPendingChannelState (0.09s) --- PASS: TestAgentImmediateAttach (0.33s) PASS ok github.com/lightningnetwork/lnd/autopilot 0.387s === RUN TestConnectionCorrectness --- PASS: TestConnectionCorrectness (0.03s) === RUN TestMaxPayloadLength === RUN TestWriteMessageChunking --- PASS: TestWriteMessageChunking (0.01s) === RUN TestBolt0008TestVectors --- PASS: TestMaxPayloadLength (0.00s) --- PASS: TestBolt0008TestVectors (0.00s) PASS ok github.com/lightningnetwork/lnd/brontide 0.062s === RUN TestInterfaces --- FAIL: TestInterfaces (0.27s) interface_test.go:1039: unable to set up mining node: exec: "btcd": executable file not found in $PATH === RUN TestConcurrentQueue --- PASS: TestConcurrentQueue (0.00s) FAIL exit status 1 FAIL github.com/lightningnetwork/lnd/chainntnfs 0.321s ? github.com/lightningnetwork/lnd/chainntnfs/btcdnotify [no test files] ? github.com/lightningnetwork/lnd/chainntnfs/neutrinonotify [no test files] === RUN TestOpenChannelPutGetDelete === RUN TestChannelStateTransition === RUN TestFetchPendingChannels === RUN TestFetchClosedChannels === RUN TestOpenWithCreate === RUN TestNodeInsertionAndDeletion === RUN TestPartialNode === RUN TestAliasLookup === RUN TestSourceNode === RUN TestEdgeInsertionDeletion === RUN TestDisconnecteBlockAtHeight === RUN TestEdgeInfoUpdates === RUN TestGraphTraversal === RUN TestGraphPruning === RUN TestInvoiceWorkflow === RUN TestVersionFetchPut === RUN TestOrderOfMigrations === RUN TestGlobalVersionList === RUN TestMigrationWithPanic === RUN TestMigrationWithFatal === RUN TestMigrationWithoutErrors === RUN TestLinkNodeEncodeDecode === RUN TestOutgoingPaymentSerialization === RUN TestOutgoingPaymentWorkflow === RUN TestWaitingProofStore --- PASS: TestGlobalVersionList (0.00s) --- PASS: TestMigrationWithoutErrors (0.01s) --- PASS: TestMigrationWithFatal (0.00s) --- PASS: TestOpenChannelPutGetDelete (0.01s) --- PASS: TestVersionFetchPut (0.00s) --- PASS: TestOrderOfMigrations (0.00s) --- PASS: TestMigrationWithPanic (0.00s) --- PASS: TestPartialNode (0.01s) --- PASS: TestGraphPruning (0.03s) --- PASS: TestEdgeInfoUpdates (0.01s) --- PASS: TestDisconnecteBlockAtHeight (0.01s) --- PASS: TestEdgeInsertionDeletion (0.01s) --- PASS: TestSourceNode (0.01s) --- PASS: TestAliasLookup (0.01s) --- PASS: TestGraphTraversal (0.05s) --- PASS: TestNodeInsertionAndDeletion (0.01s) --- PASS: TestFetchClosedChannels (0.02s) --- PASS: TestOpenWithCreate (0.01s) --- PASS: TestFetchPendingChannels (0.01s) --- PASS: TestInvoiceWorkflow (0.03s) --- PASS: TestOutgoingPaymentSerialization (0.00s) --- PASS: TestChannelStateTransition (0.02s) --- PASS: TestLinkNodeEncodeDecode (0.00s) --- PASS: TestWaitingProofStore (0.02s) --- PASS: TestOutgoingPaymentWorkflow (0.07s) PASS ok github.com/lightningnetwork/lnd/channeldb 0.176s ? github.com/lightningnetwork/lnd/cmd/lncli [no test files] === RUN TestProcessAnnouncement === RUN TestPrematureAnnouncement === RUN TestSignatureAnnouncementLocalFirst === RUN TestOrphanSignatureAnnouncement === RUN TestDeDuplicatedAnnouncements --- PASS: TestPrematureAnnouncement (0.31s) --- PASS: TestProcessAnnouncement (0.31s) --- PASS: TestDeDuplicatedAnnouncements (0.00s) --- PASS: TestOrphanSignatureAnnouncement (0.71s) --- PASS: TestSignatureAnnouncementLocalFirst (0.91s) PASS ok github.com/lightningnetwork/lnd/discovery 0.956s ? github.com/lightningnetwork/lnd/docs/go-fuzz [no test files] === RUN TestChannelLinkSingleHopPayment === RUN TestChannelLinkBidirectionalOneHopPayments === RUN TestChannelLinkMultiHopPayment === RUN TestExitNodeTimelockPayloadMismatch === RUN TestExitNodeAmountPayloadMismatch === RUN TestLinkForwardTimelockPolicyMismatch === RUN TestLinkForwardFeePolicyMismatch === RUN TestLinkForwardMinHTLCPolicyMismatch === RUN TestUpdateForwardingPolicy === RUN TestChannelLinkMultiHopInsufficientPayment === RUN TestChannelLinkMultiHopUnknownPaymentHash === RUN TestChannelLinkMultiHopUnknownNextHop === RUN TestChannelLinkMultiHopDecodeError === RUN TestChannelLinkExpiryTooSoonExitNode === RUN TestChannelLinkExpiryTooSoonMidNode === RUN TestChannelLinkSingleHopMessageOrdering === RUN TestChannelLinkBandwidthConsistency === RUN TestChannelLinkBandwidthConsistencyOverflow === RUN TestChannelRetransmission === RUN TestShouldAdjustCommitFee --- PASS: TestShouldAdjustCommitFee (0.00s) === RUN TestChannelLinkUpdateCommitFee === RUN TestMailBoxCouriers === RUN TestWaitingQueueThreadSafety === RUN TestSwitchForward === RUN TestSkipIneligibleLinksMultiHopForward === RUN TestSkipIneligibleLinksLocalForward === RUN TestSwitchCancel === RUN TestSwitchAddSamePayment === RUN TestSwitchSendPayment --- PASS: TestChannelLinkSingleHopMessageOrdering (0.14s) --- PASS: TestUpdateForwardingPolicy (0.23s) --- PASS: TestChannelLinkSingleHopPayment (0.25s) --- PASS: TestSwitchSendPayment (0.00s) --- PASS: TestSwitchAddSamePayment (0.00s) --- PASS: TestSwitchCancel (0.00s) --- PASS: TestSkipIneligibleLinksLocalForward (0.00s) --- PASS: TestSkipIneligibleLinksMultiHopForward (0.00s) --- PASS: TestSwitchForward (0.00s) --- PASS: TestChannelLinkExpiryTooSoonMidNode (0.11s) --- PASS: TestMailBoxCouriers (0.00s) --- PASS: TestChannelLinkMultiHopDecodeError (0.30s) === RUN TestChannelRetransmission/intercept_last_alice_revoke_and_ack --- PASS: TestWaitingQueueThreadSafety (0.08s) --- PASS: TestChannelLinkExpiryTooSoonExitNode (0.14s) --- PASS: TestChannelLinkBandwidthConsistency (0.83s) --- PASS: TestChannelLinkMultiHopUnknownPaymentHash (0.26s) --- PASS: TestChannelLinkMultiHopUnknownNextHop (0.15s) --- PASS: TestExitNodeAmountPayloadMismatch (0.10s) --- PASS: TestChannelLinkUpdateCommitFee (1.55s) --- PASS: TestLinkForwardFeePolicyMismatch (0.11s) --- PASS: TestLinkForwardTimelockPolicyMismatch (0.11s) --- PASS: TestLinkForwardMinHTLCPolicyMismatch (0.12s) --- PASS: TestExitNodeTimelockPayloadMismatch (0.12s) --- PASS: TestChannelLinkMultiHopPayment (0.28s) --- PASS: TestChannelLinkMultiHopInsufficientPayment (0.15s) --- PASS: TestChannelLinkBandwidthConsistencyOverflow (4.65s) === RUN TestChannelRetransmission/intercept_bob_revoke_and_ack_commit_sig_messages --- PASS: TestChannelLinkBidirectionalOneHopPayments (5.30s) link_test.go:378: Max waiting: 3.256691409s link_test.go:379: Min waiting: 1.428323619s link_test.go:380: Average waiting: 2.50109161s === RUN TestChannelRetransmission/intercept_update_add_htlc_and_commit_sig_messages --- PASS: TestChannelRetransmission (15.79s) --- PASS: TestChannelRetransmission/intercept_last_alice_revoke_and_ack (5.28s) --- PASS: TestChannelRetransmission/intercept_bob_revoke_and_ack_commit_sig_messages (5.26s) --- PASS: TestChannelRetransmission/intercept_update_add_htlc_and_commit_sig_messages (5.26s) PASS ok github.com/lightningnetwork/lnd/htlcswitch 16.171s ? github.com/lightningnetwork/lnd/lnrpc [no test files] === RUN TestSimpleAddSettleWorkflow === RUN TestCheckCommitTxSize === RUN TestCooperativeChannelClosure === RUN TestForceClose === RUN TestForceCloseDustOutput === RUN TestDustHTLCFees === RUN TestHTLCDustLimit === RUN TestChannelBalanceDustLimit === RUN TestStateUpdatePersistence === RUN TestCancelHTLC === RUN TestCooperativeCloseDustAdherence === RUN TestUpdateFeeFail === RUN TestUpdateFeeSenderCommits === RUN TestUpdateFeeReceiverCommits === RUN TestUpdateFeeReceiverSendsUpdate === RUN TestUpdateFeeMultipleUpdates === RUN TestAddHTLCNegativeBalance === RUN TestChanSyncFullySynced === RUN TestChanSyncOweCommitment === RUN TestChanSyncOweRevocation === RUN TestChanSyncOweRevocationAndCommit === RUN TestChanSyncOweRevocationAndCommitForceTransition === RUN TestFeeUpdateRejectInsaneFee === RUN TestChannelRetransmissionFeeUpdate === RUN TestChanSyncUnableToSync === RUN TestChanSyncInvalidLastSecret === RUN TestChanAvailableBandwidth === RUN TestSignCommitmentFailNotLockedIn === RUN TestCommitmentSpendValidation === RUN TestRevocationKeyDerivation === RUN TestTweakKeyDerivation === RUN TestHTLCSenderSpendValidation === RUN TestHTLCReceiverSpendValidation === RUN TestSecondLevelHtlcSpends === RUN TestCommitTxStateHint === RUN TestSpecificationKeyDerivation --- PASS: TestSpecificationKeyDerivation (0.00s) === RUN TestSignDescriptorSerialization --- PASS: TestSignDescriptorSerialization (0.00s) === RUN TestTxOutSerialization --- PASS: TestTxOutSerialization (0.00s) === RUN TestLightningWallet === RUN TestTxWeightEstimator --- PASS: TestTxWeightEstimator (0.00s) --- PASS: TestCommitmentSpendValidation (0.00s) --- PASS: TestSecondLevelHtlcSpends (0.01s) --- PASS: TestSimpleAddSettleWorkflow (0.07s) --- PASS: TestChanSyncFullySynced (0.08s) --- PASS: TestAddHTLCNegativeBalance (0.02s) --- PASS: TestChanSyncOweRevocation (0.10s) --- PASS: TestChanSyncOweCommitment (0.11s) --- PASS: TestUpdateFeeMultipleUpdates (0.04s) --- PASS: TestUpdateFeeReceiverSendsUpdate (0.06s) --- PASS: TestUpdateFeeReceiverCommits (0.06s) --- PASS: TestUpdateFeeFail (0.05s) --- PASS: TestCooperativeCloseDustAdherence (0.04s) --- PASS: TestUpdateFeeSenderCommits (0.08s) --- PASS: TestCancelHTLC (0.09s) --- PASS: TestHTLCDustLimit (0.08s) --- PASS: TestChannelBalanceDustLimit (0.11s) --- PASS: TestStateUpdatePersistence (0.12s) --- PASS: TestDustHTLCFees (0.07s) --- PASS: TestCooperativeChannelClosure (0.04s) --- PASS: TestForceClose (0.06s) --- PASS: TestCommitTxStateHint (0.00s) script_utils_test.go:1099: Passed: states 0 to 1000 script_utils_test.go:1099: Passed: states 'maxStateHint-1000' to 'maxStateHint' script_utils_test.go:1099: Passed: state 'maxStateHint+1' script_utils_test.go:1099: Passed: commit transaction with two inputs --- PASS: TestHTLCSenderSpendValidation (0.01s) --- PASS: TestHTLCReceiverSpendValidation (0.02s) --- PASS: TestTweakKeyDerivation (0.00s) --- PASS: TestForceCloseDustOutput (0.13s) --- PASS: TestChanSyncUnableToSync (0.03s) --- PASS: TestSignCommitmentFailNotLockedIn (0.04s) --- PASS: TestChanSyncInvalidLastSecret (0.08s) --- PASS: TestChanAvailableBandwidth (0.11s) --- PASS: TestRevocationKeyDerivation (0.00s) --- PASS: TestFeeUpdateRejectInsaneFee (0.02s) --- PASS: TestChanSyncOweRevocationAndCommitForceTransition (0.11s) --- PASS: TestChannelRetransmissionFeeUpdate (0.16s) --- PASS: TestChanSyncOweRevocationAndCommit (0.09s) --- FAIL: TestLightningWallet (0.47s) interface_test.go:1448: unable to set up mining node: exec: "btcd": executable file not found in $PATH --- PASS: TestCheckCommitTxSize (0.57s) FAIL exit status 1 FAIL github.com/lightningnetwork/lnd/lnwallet 0.951s ? github.com/lightningnetwork/lnd/lnwallet/btcwallet [no test files] === RUN TestChannelIDOutPointConversion === RUN TestGenPossibleOutPoints === RUN TestFeatureVectorSetUnset === RUN TestFeatureVectorEncodeDecode === RUN TestFeatureVectorUnknownFeatures === RUN TestFeatureNames === RUN TestMaxOutPointIndex === RUN TestEmptyMessageUnknownType === RUN TestLightningWireProtocol === RUN TestMilliSatoshiConversion === RUN TestNetAddressDisplay === RUN TestEncodeDecodeCode --- PASS: TestEncodeDecodeCode (0.04s) === RUN TestShortChannelIDEncoding === RUN TestSignatureSerializeDeserialize --- PASS: TestEmptyMessageUnknownType (0.00s) --- PASS: TestSignatureSerializeDeserialize (0.00s) --- PASS: TestShortChannelIDEncoding (0.00s) --- PASS: TestNetAddressDisplay (0.00s) --- PASS: TestMilliSatoshiConversion (0.00s) --- PASS: TestFeatureVectorUnknownFeatures (0.00s) --- PASS: TestMaxOutPointIndex (0.00s) --- PASS: TestFeatureNames (0.00s) --- PASS: TestFeatureVectorSetUnset (0.00s) --- PASS: TestFeatureVectorEncodeDecode (0.00s) --- PASS: TestChannelIDOutPointConversion (0.00s) --- PASS: TestGenPossibleOutPoints (0.01s) --- PASS: TestLightningWireProtocol (2.26s) lnwire_test.go:645: Running fuzz tests for msgType=Init lnwire_test.go:645: Running fuzz tests for msgType=Error lnwire_test.go:645: Running fuzz tests for msgType=Ping lnwire_test.go:645: Running fuzz tests for msgType=Pong lnwire_test.go:645: Running fuzz tests for msgType=MsgOpenChannel lnwire_test.go:645: Running fuzz tests for msgType=MsgAcceptChannel lnwire_test.go:645: Running fuzz tests for msgType=MsgFundingCreated lnwire_test.go:645: Running fuzz tests for msgType=MsgFundingSigned lnwire_test.go:645: Running fuzz tests for msgType=FundingLocked lnwire_test.go:645: Running fuzz tests for msgType=Shutdown lnwire_test.go:645: Running fuzz tests for msgType=ClosingSigned lnwire_test.go:645: Running fuzz tests for msgType=UpdateAddHTLC lnwire_test.go:645: Running fuzz tests for msgType=UpdateFufillHTLC lnwire_test.go:645: Running fuzz tests for msgType=UpdateFailHTLC lnwire_test.go:645: Running fuzz tests for msgType=CommitSig lnwire_test.go:645: Running fuzz tests for msgType=RevokeAndAck lnwire_test.go:645: Running fuzz tests for msgType=UpdateFee lnwire_test.go:645: Running fuzz tests for msgType=UpdateFailMalformedHTLC lnwire_test.go:645: Running fuzz tests for msgType=ChannelReestablish lnwire_test.go:645: Running fuzz tests for msgType=ChannelAnnouncement lnwire_test.go:645: Running fuzz tests for msgType=NodeAnnouncement lnwire_test.go:645: Running fuzz tests for msgType=ChannelUpdate lnwire_test.go:645: Running fuzz tests for msgType=AnnounceSignatures PASS ok github.com/lightningnetwork/lnd/lnwire 2.328s ? github.com/lightningnetwork/lnd/macaroons [no test files] === RUN TestHeapOrdering === RUN TestEdgeUpdateNotification === RUN TestNodeUpdateNotification === RUN TestNotificationCancellation === RUN TestChannelCloseNotification === RUN TestBasicGraphPathFinding === RUN TestKShortestPathFinding === RUN TestNewRoutePathTooLong --- SKIP: TestNewRoutePathTooLong (0.00s) pathfind_test.go:514: === RUN TestPathNotAvailable === RUN TestPathInsufficientCapacity === RUN TestRouteFailMinHTLC --- PASS: TestRouteFailMinHTLC (0.01s) === RUN TestRouteFailDisabledEdge --- PASS: TestRouteFailDisabledEdge (0.02s) === RUN TestPathInsufficientCapacityWithFee === RUN TestPathFindSpecExample === RUN TestFindRoutesFeeSorting === RUN TestSendPaymentRouteFailureFallback === RUN TestSendPaymentErrorPathPruning === RUN TestAddProof === RUN TestIgnoreNodeAnnouncement === RUN TestAddEdgeUnknownVertexes === RUN TestWakeUpOnStaleBranch === RUN TestDisconnectedBlocks === RUN TestRouterChansClosedOfflinePruneGraph --- PASS: TestHeapOrdering (0.00s) --- PASS: TestIgnoreNodeAnnouncement (0.03s) --- PASS: TestPathNotAvailable (0.04s) --- PASS: TestPathInsufficientCapacity (0.05s) --- PASS: TestChannelCloseNotification (0.01s) --- PASS: TestAddEdgeUnknownVertexes (0.06s) --- PASS: TestNotificationCancellation (0.01s) --- PASS: TestAddProof (0.01s) --- PASS: TestKShortestPathFinding (0.05s) --- PASS: TestBasicGraphPathFinding (0.05s) --- PASS: TestNodeUpdateNotification (0.03s) --- PASS: TestSendPaymentRouteFailureFallback (0.05s) --- PASS: TestFindRoutesFeeSorting (0.06s) --- PASS: TestPathInsufficientCapacityWithFee (0.00s) --- PASS: TestSendPaymentErrorPathPruning (0.10s) --- PASS: TestRouterChansClosedOfflinePruneGraph (0.03s) --- PASS: TestPathFindSpecExample (0.05s) --- PASS: TestEdgeUpdateNotification (0.21s) --- PASS: TestDisconnectedBlocks (1.52s) --- PASS: TestWakeUpOnStaleBranch (1.54s) PASS ok github.com/lightningnetwork/lnd/routing 1.798s === RUN TestFilteredChainView --- FAIL: TestFilteredChainView (0.28s) interface_test.go:759: unable to set up mining node: exec: "btcd": executable file not found in $PATH FAIL exit status 1 FAIL github.com/lightningnetwork/lnd/routing/chainview 0.328s === RUN TestDeriveIndex === RUN TestSpecificationDeriveElement === RUN TestShaChainProducerRestore === RUN TestSpecificationShaChainInsert === RUN TestShaChainStore --- PASS: TestDeriveIndex (0.00s) element_test.go:185: Passed: zero 'from' 'to' element_test.go:185: Passed: same indexes #1 element_test.go:185: Passed: same indexes #2 element_test.go:185: Passed: test seed 'from' element_test.go:185: Passed: not the same indexes element_test.go:185: Passed: 'from' index greater then 'to' index element_test.go:185: Passed: zero number trailing zeros --- PASS: TestShaChainProducerRestore (0.00s) --- PASS: TestSpecificationDeriveElement (0.00s) element_test.go:274: Passed (generate_from_seed 0 final node) element_test.go:274: Passed (generate_from_seed FF final node) element_test.go:274: Passed (generate_from_seed FF alternate bits 1) element_test.go:274: Passed (generate_from_seed FF alternate bits 2) element_test.go:274: Passed (generate_from_seed 01 last nontrivial node) --- PASS: TestSpecificationShaChainInsert (0.00s) store_test.go:433: Passed (insert_secret correct sequence) store_test.go:433: Passed (insert_secret #1 incorrect) store_test.go:433: Passed (insert_secret #2 incorrect (#1 derived from incorrect)) store_test.go:433: Passed (insert_secret #3 incorrect) store_test.go:433: Passed (insert_secret #4 incorrect (1,2,3 derived from incorrect)) store_test.go:433: Passed (insert_secret #5 incorrect) store_test.go:433: Passed (insert_secret #6 incorrect (5 derived from incorrect)) store_test.go:433: Passed (insert_secret #7 incorrect) store_test.go:433: Passed (insert_secret #8 incorrect) --- PASS: TestShaChainStore (0.18s) PASS ok github.com/lightningnetwork/lnd/shachain 0.192s === RUN TestCreateWallet === RUN TestUnlockWallet --- PASS: TestCreateWallet (2.83s) --- PASS: TestUnlockWallet (4.71s) PASS ok github.com/lightningnetwork/lnd/walletunlocker 4.820s === RUN TestDecodeAmount === RUN TestEncodeAmount === RUN TestParseTimestamp === RUN TestDecodeEncode === RUN TestNewInvoice --- PASS: TestDecodeAmount (0.00s) --- PASS: TestParseTimestamp (0.00s) --- PASS: TestEncodeAmount (0.00s) --- PASS: TestNewInvoice (0.00s) --- PASS: TestDecodeEncode (0.01s) PASS ok github.com/lightningnetwork/lnd/zpay32 0.062s ```

Roasbeef commented 6 years ago

Ahh, nice find. Yeah it definitely makes sense to move the installation of btcd above that fragment.

cbarraford commented 6 years ago

@Roasbeef thanks bud, opened the subsequent PR 👍