Function pact_mock_server::shutdown_mock_server_by_port
[−]
[src]
pub fn shutdown_mock_server_by_port(port: i32) -> bool
Shuts and cleans up the mock server with the given port. 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.