solidity-coverage: Testrpc does not exit upon coverage competion (Linux)

If I run coverage twice, testrpc will throw Error: listen EADDRINUSE :::8555 on the second try.

As a result I have to manually close the testrpc process spawned by solidity-coverage before running again. It looks as though it should kill the process from a brief look through the code.

OS is Ubuntu 16.04.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 3
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Should be fixed in 0.5.1. Thanks again @fvictorio.

Please ping if this is not the case. Tested strategy by launching testrpc-sc twice in succession in a Travis Ubuntu container here.

Can confirm, this is happening to me too in Ubuntu 17.10.

@fvictorio Thank you! No I haven’t - I looked into this more a while ago and it seemed like the shell that exec runs in is not getting killed on Linux. So tree kill looks perfect.

@cgewecke Have you tried using https://www.npmjs.com/package/tree-kill?

I was writing a script that, among other things, starts ganache and I was having a hard time killing it. Using tree-kill was the only thing that worked.