From 22793e44187268fba6d40f633c6feb5edcd04a77 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 22 Aug 2018 21:27:11 -0700 Subject: [PATCH] htlcswitch/link_test: increase fwdpkg gc interval In this commit, we increase the fwdpkg gc interval to avoid having it conflict with switch tests that inspect forwarding packages. The current timeout is a little too short on travis, and sporadically fails TestChannelLinkCleanupSpuriousResponses, which was added recently. --- htlcswitch/link_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htlcswitch/link_test.go b/htlcswitch/link_test.go index b48587e6..1bb1fc95 100644 --- a/htlcswitch/link_test.go +++ b/htlcswitch/link_test.go @@ -1560,7 +1560,7 @@ func newSingleLinkTestHarness(chanAmt, chanReserve btcutil.Amount) ( Registry: invoiceRegistry, ChainEvents: &contractcourt.ChainEventSubscription{}, BatchTicker: bticker, - FwdPkgGCTicker: ticker.MockNew(5 * time.Second), + FwdPkgGCTicker: ticker.MockNew(15 * time.Second), // Make the BatchSize and Min/MaxFeeUpdateTimeout large enough // to not trigger commit updates automatically during tests. BatchSize: 10000,