test: fix test failure due to localhost being also ipv6
Depending on runtime environment, "localhost" might resolve to both IPv4 and IPv6, resulting in an AggregateError in place of an Error.
I
Ilya Priven committed
92079a017c7344ac9ceeabbf0052e203ea0e7afb
Parent: 2ae1c36