1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-03-25 21:29:10 +02:00

Adjust timeouts in the common/io/tls test to fix flapping coverage.

This test was failing coverage pretty regularly because the retry in tlsClientOpen() was not always being reached. Make the TLS timeouts longer to ensure reliable coverage.
This commit is contained in:
David Steele 2023-10-01 16:32:27 -04:00
parent af4621894a
commit 983cc1a9e3

View File

@ -449,8 +449,9 @@ testRun(void)
TEST_ERROR(
ioClientOpen(client), HostConnectError, "unable to get address for '99.99.99.99.99': [-2] Name or service not known");
// Set TLS client timeout higher than socket timeout to ensure that TLS retries are covered
TEST_ASSIGN(
client, tlsClientNewP(sckClientNew(STRDEF("localhost"), hrnServerPort(0), 100, 100), STRDEF("X"), 100, 100, true),
client, tlsClientNewP(sckClientNew(STRDEF("localhost"), hrnServerPort(0), 100, 100), STRDEF("X"), 250, 250, true),
"new client");
TEST_ERROR_FMT(
ioClientOpen(client), HostConnectError,