|
3 | 3 | import time |
4 | 4 | from collections import defaultdict |
5 | 5 |
|
6 | | -import pytest |
7 | 6 | import websockets |
8 | 7 | from eth_utils import abi |
9 | 8 | from hexbytes import HexBytes |
|
16 | 15 | CONTRACTS, |
17 | 16 | KEYS, |
18 | 17 | deploy_contract, |
19 | | - modify_command_in_supervisor_config, |
20 | 18 | send_raw_transactions, |
21 | 19 | send_transaction, |
22 | 20 | sign_transaction, |
@@ -82,16 +80,10 @@ async def unsubscribe(self, sub_id): |
82 | 80 | TEST_EVENT_TOPIC = Web3.keccak(text="TestEvent(uint256)") |
83 | 81 |
|
84 | 82 |
|
85 | | -@pytest.mark.flaky(max_runs=2) |
86 | 83 | def test_subscribe_basic(cronos: Cronos): |
87 | 84 | """ |
88 | 85 | test basic subscribe and unsubscribe |
89 | 86 | """ |
90 | | - modify_command_in_supervisor_config( |
91 | | - cronos.base_dir / "tasks.ini", |
92 | | - lambda cmd: f"{cmd} --evm.max-tx-gas-wanted {0}", |
93 | | - ) |
94 | | - cronos.supervisorctl("update") |
95 | 87 | wait_for_port(ports.evmrpc_ws_port(cronos.base_port(0))) |
96 | 88 | cli = cronos.cosmos_cli() |
97 | 89 | loop = asyncio.get_event_loop() |
@@ -161,11 +153,11 @@ async def async_test(): |
161 | 153 | await asyncio.gather(*[subscriber_test(c) for i in range(3)]) |
162 | 154 | contract = deploy_contract(cronos.w3, CONTRACTS["TestERC20A"]) |
163 | 155 | address = contract.address |
164 | | - await asyncio.gather(*[transfer_test(c, cronos.w3, contract, address)]) |
| 156 | + await transfer_test(c, cronos.w3, contract, address) |
165 | 157 | contract = deploy_contract(cronos.w3, CONTRACTS["TestMessageCall"]) |
166 | 158 | inner = contract.caller.inner() |
167 | 159 | begin = time.time() |
168 | | - await asyncio.gather(*[logs_test(c, cronos.w3, contract, inner)]) |
| 160 | + await logs_test(c, cronos.w3, contract, inner) |
169 | 161 | print("msg call time", time.time() - begin) |
170 | 162 | t.cancel() |
171 | 163 | try: |
|
0 commit comments