The std::process::exit I introduced for the stop RPC method is not a good idea for the rpc testing because (among other issues) it terminates immediately and the tests require for the method to return before actually finishing with the current process.
Motivation
The
std::process::exit
I introduced for thestop
RPC method is not a good idea for the rpc testing because (among other issues) it terminates immediately and the tests require for the method to return before actually finishing with the current process.Additionally this is a more graceful shutdown and will close https://github.com/ZcashFoundation/zebra/issues/8850
Solution
Terminate the process by sending a
SIGINT
signal.PR Author's Checklist
PR Reviewer's Checklist