Currently, once the MockServer is started, it can't be stopped as it runs in a separated tokio task, and its handle is not stored.
It would be nice to have a way to stop the MockServer (with a CancellationToken or using abort on the task handle) to mimic network issues (dropped connection...)
Currently, once the
MockServeris started, it can't be stopped as it runs in a separatedtokiotask, and its handle is not stored.It would be nice to have a way to stop the
MockServer(with aCancellationTokenor usingaborton the task handle) to mimic network issues (dropped connection...)