From 049d1b32a488cd683d2376a3f99c73b0c1e0d2b4 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Thu, 21 Dec 2023 09:37:51 +0800 Subject: [PATCH] avoid password or unlock err in geth --- integration_tests/test_basic.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integration_tests/test_basic.py b/integration_tests/test_basic.py index cd18aad705..feeb1d5346 100644 --- a/integration_tests/test_basic.py +++ b/integration_tests/test_basic.py @@ -39,9 +39,12 @@ def test_basic(cluster): assert w3.eth.chain_id == 777 -def test_send_transaction(cluster): +def test_send_transaction(cluster, geth): "test eth_sendTransaction api" w3 = cluster.w3 + # wait 1s to avoid unlock error + if cluster == geth: + time.sleep(1) txhash = w3.eth.send_transaction( { "from": ADDRS["validator"],