Function pact_mock_server::cleanup_mock_server
[−]
[src]
pub extern fn cleanup_mock_server(mock_server_port: int32_t) -> bool
External interface to cleanup a mock server. This function will try terminate the mock server with the given port number and cleanup any memory allocated for it. Returns true, unless a mock server with the given port number does not exist, or the function panics.
NOTE: Although close()
on the listerner for the mock server is called, this does not
currently work and the listerner will continue handling requests. In this
case, it will always return a 404 once the mock server has been cleaned up.