mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +02:00
Suppress uncoverable error in common/io-tls test module.
It is pretty much impossible for a static IP to not resolve to an address but in theory the error could catch other conditions so it seems best to keep it.
This commit is contained in:
parent
9a751c2d98
commit
674b65886f
@ -132,7 +132,10 @@ testRun(void)
|
||||
const char *port = "7777";
|
||||
|
||||
if ((result = getaddrinfo(host, port, &hints, &hostAddress)) != 0)
|
||||
THROW_FMT(HostConnectError, "unable to get address for '%s': [%d] %s", host, result, gai_strerror(result));
|
||||
{
|
||||
THROW_FMT( // {uncoverable - lookup on IP should never fail}
|
||||
HostConnectError, "unable to get address for '%s': [%d] %s", host, result, gai_strerror(result));
|
||||
}
|
||||
|
||||
TRY_BEGIN()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user