mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-06 04:59:34 +02:00
itest: fix taproot itest timeout issue
This commit is contained in:
parent
67e2e382bc
commit
f1124a0ff9
@ -129,11 +129,8 @@ func testRemoteSigner(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
sendCoins: true,
|
sendCoins: true,
|
||||||
randomSeed: true,
|
randomSeed: true,
|
||||||
fn: func(tt *harnessTest, wo, carol *lntest.HarnessNode) {
|
fn: func(tt *harnessTest, wo, carol *lntest.HarnessNode) {
|
||||||
ctxt, cancel := context.WithTimeout(
|
longTimeout := 3 * defaultTimeout
|
||||||
ctxb, 3*defaultTimeout,
|
ctxt, cancel := context.WithTimeout(ctxb, longTimeout)
|
||||||
)
|
|
||||||
defer cancel()
|
|
||||||
|
|
||||||
testTaprootSendCoinsKeySpendBip86(ctxt, tt, wo, net)
|
testTaprootSendCoinsKeySpendBip86(ctxt, tt, wo, net)
|
||||||
testTaprootComputeInputScriptKeySpendBip86(
|
testTaprootComputeInputScriptKeySpendBip86(
|
||||||
ctxt, tt, wo, net,
|
ctxt, tt, wo, net,
|
||||||
@ -143,10 +140,14 @@ func testRemoteSigner(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
testTaprootSignOutputRawKeySpendRootHash(
|
testTaprootSignOutputRawKeySpendRootHash(
|
||||||
ctxt, tt, wo, net,
|
ctxt, tt, wo, net,
|
||||||
)
|
)
|
||||||
|
cancel()
|
||||||
|
|
||||||
|
ctxt, cancel = context.WithTimeout(ctxb, longTimeout)
|
||||||
testTaprootMuSig2KeySpendRootHash(ctxt, tt, wo, net)
|
testTaprootMuSig2KeySpendRootHash(ctxt, tt, wo, net)
|
||||||
testTaprootMuSig2ScriptSpend(ctxt, tt, wo, net)
|
testTaprootMuSig2ScriptSpend(ctxt, tt, wo, net)
|
||||||
testTaprootMuSig2KeySpendBip86(ctxt, tt, wo, net)
|
testTaprootMuSig2KeySpendBip86(ctxt, tt, wo, net)
|
||||||
testTaprootMuSig2CombinedLeafKeySpend(ctxt, tt, wo, net)
|
testTaprootMuSig2CombinedLeafKeySpend(ctxt, tt, wo, net)
|
||||||
|
cancel()
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
@ -46,23 +46,29 @@ var (
|
|||||||
// outputs.
|
// outputs.
|
||||||
func testTaproot(net *lntest.NetworkHarness, t *harnessTest) {
|
func testTaproot(net *lntest.NetworkHarness, t *harnessTest) {
|
||||||
ctxb := context.Background()
|
ctxb := context.Background()
|
||||||
ctxt, cancel := context.WithTimeout(ctxb, 2*defaultTimeout)
|
|
||||||
defer cancel()
|
|
||||||
|
|
||||||
|
longTimeout := 2 * defaultTimeout
|
||||||
|
ctxt, cancel := context.WithTimeout(ctxb, longTimeout)
|
||||||
testTaprootSendCoinsKeySpendBip86(ctxt, t, net.Alice, net)
|
testTaprootSendCoinsKeySpendBip86(ctxt, t, net.Alice, net)
|
||||||
testTaprootComputeInputScriptKeySpendBip86(ctxt, t, net.Alice, net)
|
testTaprootComputeInputScriptKeySpendBip86(ctxt, t, net.Alice, net)
|
||||||
testTaprootSignOutputRawScriptSpend(ctxt, t, net.Alice, net)
|
testTaprootSignOutputRawScriptSpend(ctxt, t, net.Alice, net)
|
||||||
testTaprootSignOutputRawKeySpendBip86(ctxt, t, net.Alice, net)
|
testTaprootSignOutputRawKeySpendBip86(ctxt, t, net.Alice, net)
|
||||||
testTaprootSignOutputRawKeySpendRootHash(ctxt, t, net.Alice, net)
|
testTaprootSignOutputRawKeySpendRootHash(ctxt, t, net.Alice, net)
|
||||||
|
cancel()
|
||||||
|
|
||||||
|
ctxt, cancel = context.WithTimeout(ctxb, longTimeout)
|
||||||
testTaprootMuSig2KeySpendBip86(ctxt, t, net.Alice, net)
|
testTaprootMuSig2KeySpendBip86(ctxt, t, net.Alice, net)
|
||||||
testTaprootMuSig2KeySpendRootHash(ctxt, t, net.Alice, net)
|
testTaprootMuSig2KeySpendRootHash(ctxt, t, net.Alice, net)
|
||||||
testTaprootMuSig2ScriptSpend(ctxt, t, net.Alice, net)
|
testTaprootMuSig2ScriptSpend(ctxt, t, net.Alice, net)
|
||||||
testTaprootMuSig2CombinedLeafKeySpend(ctxt, t, net.Alice, net)
|
testTaprootMuSig2CombinedLeafKeySpend(ctxt, t, net.Alice, net)
|
||||||
|
cancel()
|
||||||
|
|
||||||
|
ctxt, cancel = context.WithTimeout(ctxb, longTimeout)
|
||||||
testTaprootImportTapscriptFullTree(ctxt, t, net.Alice, net)
|
testTaprootImportTapscriptFullTree(ctxt, t, net.Alice, net)
|
||||||
testTaprootImportTapscriptPartialReveal(ctxt, t, net.Alice, net)
|
testTaprootImportTapscriptPartialReveal(ctxt, t, net.Alice, net)
|
||||||
testTaprootImportTapscriptRootHashOnly(ctxt, t, net.Alice, net)
|
testTaprootImportTapscriptRootHashOnly(ctxt, t, net.Alice, net)
|
||||||
testTaprootImportTapscriptFullKey(ctxt, t, net.Alice, net)
|
testTaprootImportTapscriptFullKey(ctxt, t, net.Alice, net)
|
||||||
|
cancel()
|
||||||
}
|
}
|
||||||
|
|
||||||
// testTaprootSendCoinsKeySpendBip86 tests sending to and spending from
|
// testTaprootSendCoinsKeySpendBip86 tests sending to and spending from
|
||||||
|
Loading…
x
Reference in New Issue
Block a user