itest: fix timeout issue in sweep test

This commit is contained in:
Oliver Gugger 2021-08-03 09:57:40 +02:00
parent fe931d179f
commit 06032b3f75
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

View File

@ -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[:],