aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@oath.com>2019-01-21 12:46:16 +0000
committerTor Brede Vekterli <vekterli@oath.com>2019-01-21 12:46:16 +0000
commitf95540761d2b2aeefe667d3cc2127516d9c234f2 (patch)
tree00054f851d192293b99202844b542210e3bfcb9e /vespalib
parent0c55782dcd8acd3116b9f1e5673d4ded132416c4 (diff)
Allow a client connection to be considered established in test
TLSv1.3 completes in fewer roundtrips and may therefore seemingly not observe that a server has rejected it as part of the handshake itself.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/tests/net/tls/openssl_impl/openssl_impl_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/vespalib/src/tests/net/tls/openssl_impl/openssl_impl_test.cpp b/vespalib/src/tests/net/tls/openssl_impl/openssl_impl_test.cpp
index f70c5670bc9..1d1520c64e0 100644
--- a/vespalib/src/tests/net/tls/openssl_impl/openssl_impl_test.cpp
+++ b/vespalib/src/tests/net/tls/openssl_impl/openssl_impl_test.cpp
@@ -632,7 +632,8 @@ TEST_F("Failure statistics are incremented on authorization failures", CertFixtu
EXPECT_EQUAL(0u, client_stats.invalid_peer_credentials);
EXPECT_EQUAL(1u, server_stats.failed_tls_handshakes);
EXPECT_EQUAL(0u, server_stats.tls_connections);
- EXPECT_EQUAL(0u, client_stats.tls_connections);
+ // Client TLS connection count may be 0 (<= v1.2) or 1 (v1.3), since v1.3
+ // completes its handshake earlier.
}
TEST_F("Success statistics are incremented on OK authorization", CertFixture) {