chia-blockchain/tests/core
Kyle Altendorf c4c165eabd
avoid AttributeError when shutting down plotting (#3954)
* Remove valid # type: ignore

A user ran into an exception on this line that mypy should have caught.  Let's see what it says.

```python-traceback
2021-05-06T07:31:41.595 full_node full_node_server        : ERROR    Exception , exception Stack: Traceback (most recent call last):
  File "chia\server\server.py", line 356, in start_client
  File "aiohttp\client.py", line 763, in _ws_connect
  File "aiohttp\client.py", line 521, in _request
  File "aiohttp\connector.py", line 535, in connect
  File "aiohttp\connector.py", line 892, in _create_connection
  File "aiohttp\connector.py", line 1032, in _create_direct_connection
  File "aiohttp\connector.py", line 969, in _wrap_create_connection
  File "asyncio\base_events.py", line 949, in create_connection
  File "asyncio\selector_events.py", line 473, in sock_connect
concurrent.futures._base.CancelledError

2021-05-06T07:31:45.016 daemon asyncio                    : ERROR    Task exception was never retrieved
future: <Task finished coro=<kill_service() done, defined at chia\daemon\server.py:833> exception=AttributeError("'list' object has no attribute 'pid'")>
Traceback (most recent call last):
  File "chia\daemon\server.py", line 841, in kill_service
  File "chia\daemon\server.py", line 805, in kill_process
AttributeError: 'list' object has no attribute 'pid'
2021-05-06T07:32:09.965 full_node full_node_server        : ERROR    Exception:  <class 'concurrent.futures._base.CancelledError'>, closing connection None. Traceback (most recent call last):
  File "chia\server\server.py", line 531, in api_call
  File "asyncio\tasks.py", line 435, in wait_for
concurrent.futures._base.CancelledError

2021-05-06T07:33:20.573 full_node full_node_server        : ERROR    Exception , exception Stack: Traceback (most recent call last):
  File "chia\server\server.py", line 356, in start_client
  File "aiohttp\client.py", line 763, in _ws_connect
  File "aiohttp\client.py", line 521, in _request
  File "aiohttp\connector.py", line 535, in connect
  File "aiohttp\connector.py", line 892, in _create_connection
  File "aiohttp\connector.py", line 1032, in _create_direct_connection
  File "aiohttp\connector.py", line 969, in _wrap_create_connection
```

* fix plotter service killing

* just make it always be a list of processes for all services

* catch up tests

* Update chia/daemon/server.py
2023-03-09 04:22:38 -06:00
..
cmds Add SigningMode and update verify_signature RPC to work with sign_message_by_* RPCs (#14213) 2023-01-25 12:44:37 -06:00
consensus configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
custom_types remove leading newlines from indented code blocks (#14653) 2023-02-23 21:53:48 -06:00
daemon avoid AttributeError when shutting down plotting (#3954) 2023-03-09 04:22:38 -06:00
data_layer hint most chia.types (#14741) 2023-03-06 16:34:22 -06:00
full_node Bump chia_rs to 0.2.3. and ASSERT_MY_BIRTH_* (#14720) 2023-03-03 15:12:37 -06:00
mempool Cleanup tests (#14776) 2023-03-08 11:32:12 -06:00
server exploring loop test adjustments (#14613) 2023-02-22 12:11:06 -06:00
ssl tests: Merge some fixtures and drop other redundant ones (#14629) 2023-02-21 18:37:33 -06:00
util tests: Some refactoring of poll_directory and keyring sync tests (#14616) 2023-02-27 15:29:13 -06:00
__init__.py split tests 2021-01-12 17:02:22 -05:00
config.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
large_block.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
make_block_generator.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
node_height.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_coins.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_cost_calculation.py Cleanup tests (#14776) 2023-03-08 11:32:12 -06:00
test_crawler_rpc.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_daemon_rpc.py Add a daemon heartbeat setting to config.yaml (#13886) 2023-01-06 11:55:20 -06:00
test_db_conversion.py remove leading newlines from indented code blocks (#14653) 2023-02-23 21:53:48 -06:00
test_db_validation.py remove leading newlines from indented code blocks (#14653) 2023-02-23 21:53:48 -06:00
test_farmer_harvester_rpc.py catch up with mypy 1.1.1 (#14767) 2023-03-07 11:34:07 -06:00
test_filter.py tests: Merge some fixtures and drop other redundant ones (#14629) 2023-02-21 18:37:33 -06:00
test_full_node_rpc.py sqlite-backed mempool (#14657) 2023-03-03 15:04:21 -06:00
test_merkle_set.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
test_services.py improve adjusted_timeout() to handle floats and None (#14198) 2022-12-21 23:59:36 -06:00
test_setproctitle.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00