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.
This commit is contained in:
Conner Fromknecht committed 2018-08-24 12:54:24 -07:00
1 parent 4f20905ac1
commit 22793e4418
1 file changed
+1 -1
+1 -1
View File
@@ -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,