From 06032b3f75da556306395c7ae1babacfd508f3b0 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 3 Aug 2021 09:57:40 +0200 Subject: [PATCH] itest: fix timeout issue in sweep test --- lntest/itest/lnd_misc_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lntest/itest/lnd_misc_test.go b/lntest/itest/lnd_misc_test.go index aa7bf25da..3aa3fddf5 100644 --- a/lntest/itest/lnd_misc_test.go +++ b/lntest/itest/lnd_misc_test.go @@ -1906,6 +1906,7 @@ func testSweepAllCoins(net *lntest.NetworkHarness, t *harnessTest) { // Next, we try to relabel our transaction without setting the overwrite // boolean. We expect this to fail, because the wallet requires setting // of this param to prevent accidental overwrite of labels. + ctxt, _ = context.WithTimeout(ctxb, defaultTimeout) _, err = ainz.WalletKitClient.LabelTransaction( ctxt, &walletrpc.LabelTransactionRequest{ Txid: sweepHash[:],