Refactors test-endo.js by introducing utilities to absorb the necessary boilerplate to get from an empty state to a reference to a live endo host. Also addresses #2125 by ensuring that test teardown will always run, even in the case of test failures. There should no longer be any dangling node processes after running yarn test, and it may even be possible to forego the use of test:clean and its rm -rf /tmp prelude in the general case.
Fixes #2125
Refactors
test-endo.js
by introducing utilities to absorb the necessary boilerplate to get from an empty state to a reference to a live endo host. Also addresses #2125 by ensuring that test teardown will always run, even in the case of test failures. There should no longer be any dangling node processes after runningyarn test
, and it may even be possible to forego the use oftest:clean
and itsrm -rf /tmp
prelude in the general case.