From 92cbfbccca1f4d9f639559944f0b016172a35826 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 28 Jun 2018 18:36:10 -0700 Subject: [PATCH] lnd_test: remove itest race caused by mining extra block --- lnd_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnd_test.go b/lnd_test.go index 240d99ce..a30fc095 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -7777,7 +7777,7 @@ func testMultiHopRemoteForceCloseOnChainHtlcTimeout(net *lntest.NetworkHarness, // We'll mine csvDelay blocks in order to generate the sweep transaction // of Bob's funding output. - if _, err := net.Miner.Node.Generate(csvDelay); err != nil { + if _, err := net.Miner.Node.Generate(csvDelay - 1); err != nil { t.Fatalf("unable to generate blocks: %v", err) }