Function pact_mock_server::shutdown_mock_server [] [src]

pub fn shutdown_mock_server(id: &String) -> bool

Shuts and cleans up the mock server with the given id. Returns true if a mock server was found, false otherwise.

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.