kinode-dao / kit

Development toolkit for Kinode OS
Apache License 2.0
11 stars 2 forks source link

bug: starting anvil chain should be brought down if kit is brought down #163

Closed nick1udwig closed 4 months ago

nick1udwig commented 4 months ago

Describe the bug anvil keeps trying to set up after kit is brought down.

To Reproduce Steps to reproduce the behavior:

  1. Start a server on port 8545
  2. kit f
  3. Ctrl+C during set up

Expected behavior Everything should immediately be cleaned up and stopped.

You can see how we used to do this in network_router: looping over a select! that also has a kill channel: https://github.com/kinode-dao/kit/blob/25b474abec180f6ae63b3f2c13f459a180b5be73/src/run_tests/network_router.rs

FYI @bitful-pannul

nick1udwig commented 4 months ago

b90d3cd