This PR explicitly terminates mock client connections during the test once they have received all of their responses, rather than leave them connected till the end of the test when the server shuts down. This hopefully helps with the net::server::tests::service_test which works fine locally but is brittle on GH Actions.
An example failure can be seen here: https://github.com/NLnetLabs/domain/actions/runs/8659258392/job/23744751321#step:8:526
This PR explicitly terminates mock client connections during the test once they have received all of their responses, rather than leave them connected till the end of the test when the server shuts down. This hopefully helps with the
net::server::tests::service_test
which works fine locally but is brittle on GH Actions.Result: 10 successful runs can be seen here: https://github.com/NLnetLabs/domain/actions/runs/8660164375