[−][src]Function pact_mock_server_ffi::cleanup_mock_server
#[no_mangle]pub extern "C" fn cleanup_mock_server(mock_server_port: i32) -> 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 listener for the mock server is called, this does not
currently work and the listener will continue handling requests. In this
case, it will always return a 404 once the mock server has been cleaned up.