From 8ab598e40c8ef6dfdd73c724873a244b97f6bfdb Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 23 Jan 2023 21:07:00 -0800 Subject: [PATCH] lntest/itest: make publishTxAndConfirmSweep a test helper Calling ht.Helper() means we'll get the proper line number if an error hapens. --- lntest/itest/lnd_taproot_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lntest/itest/lnd_taproot_test.go b/lntest/itest/lnd_taproot_test.go index 192ded4cd..684b9d1b1 100644 --- a/lntest/itest/lnd_taproot_test.go +++ b/lntest/itest/lnd_taproot_test.go @@ -1506,6 +1506,8 @@ func publishTxAndConfirmSweep(ht *lntemp.HarnessTest, node *node.HarnessNode, tx *wire.MsgTx, estimatedWeight int64, spendRequest *chainrpc.SpendRequest, sweepAddr string) { + ht.Helper() + // Before we publish the tx that spends the p2tr transaction, we want to // register a spend listener that we expect to fire after mining the // block.