This card is designed for integration tests where we are starting node thru the daemon and we need to be sure that node is down before we finish the test, to ensure port 53 is free on the Actions machine
Create a test utility with a node_client.send(shutdown_request) and keep sending the shutdown request in a loop until the Node 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 by Daemon, because in the test we do not have access to Node it self, only to the Daemon, so we need to sending requests to shutdown until we are sure the Node is down. After that we can wait_for_exit on the Daemon.
This card is designed for integration tests where we are starting
nodethru thedaemonand we need to be sure thatnodeis down before we finish the test, to ensureport 53is 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 theNodedoesn't response anymore.masq_lib/src/test_utils/ui_connection.rscreate new function in the
impl UiConnectionthat will be sending shutdown requests in the loop to node_client.This function is reqired for
ui_gatewaytests which operate with Node run byDaemon, because in the test we do not have access toNodeit self, only to theDaemon, so we need to sending requests to shutdown until we are sure theNodeis down. After that we canwait_for_exiton theDaemon.