winhttp/tests: Avoid test failures caused by connection errors.