Skip to content

Commit 181b9e5

Browse files
committed
test: reduce sleep time in witness_script_test and bump precision for csv test
1 parent 550563e commit 181b9e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/rpc_signrawtransaction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ def witness_script_test(self):
215215
self.generate(self.nodes[0], COINBASE_MATURITY + 1, sync_fun=self.no_op)
216216
self.nodes[0].sendtoaddress(p2sh_p2wsh_address["address"], 49.999)
217217
self.generate(self.nodes[0], 1, sync_fun=self.no_op)
218-
# ElEMENTS: allow environment time to settle
219-
time.sleep(15)
218+
# ElEMENTS: allow time for block sync
219+
time.sleep(1)
220220
# Get the UTXO info from scantxoutset
221221
unspent_output = self.nodes[1].scantxoutset('start', [p2sh_p2wsh_address['descriptor']])['unspents'][0]
222222
spk = script_to_p2sh_p2wsh_script(p2sh_p2wsh_address['redeemScript']).hex()
@@ -283,7 +283,7 @@ def OP_1NEGATE_test(self):
283283
def test_signing_with_csv(self):
284284
self.log.info("Test signing a transaction containing a fully signed CSV input")
285285
self.nodes[0].walletpassphrase("password", 9999)
286-
getcontext().prec = 8
286+
getcontext().prec = 10
287287

288288
# Make sure CSV is active
289289
assert self.nodes[0].getdeploymentinfo()['deployments']['csv']['active']

0 commit comments

Comments
 (0)