Open czarte opened 3 months ago
Note that when you instruct the Daemon to start a Node, and the Daemon successfully does so, the response message the Daemon sends you will have the operating system's process ID for the Node that was started.
If you ask the OS whether the Node's process is still running, you'll get a more reliable answer than you will if you ask the UI Gateway.
This card is designed for integration tests where we are starting
node
thru thedaemon
and we need to be sure thatnode
is down before we finish the test, to ensureport 53
is free on the Actions machineCreate a test utility with a
node_client.send(shutdown_request)
and keep sending the shutdown request in a loop until theNode
doesn't response anymore.masq_lib/src/test_utils/ui_connection.rs
create new function in the
impl UiConnection
that will be sending shutdown requests in the loop to node_client.This function is reqired for
ui_gateway
tests which operate with Node run byDaemon
, because in the test we do not have access toNode
it self, only to theDaemon
, so we need to sending requests to shutdown until we are sure theNode
is down. After that we canwait_for_exit
on theDaemon
.