From 1698431d748b31d3a382e7ce10ec2afe202c6747 Mon Sep 17 00:00:00 2001 From: Asra Ali Date: Tue, 12 Jan 2021 15:21:08 -0500 Subject: [PATCH] fix test Signed-off-by: Asra Ali --- test/extensions/transport_sockets/tls/context_impl_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/extensions/transport_sockets/tls/context_impl_test.cc b/test/extensions/transport_sockets/tls/context_impl_test.cc index 43ddc1878765..1ab0d5a9e8f3 100644 --- a/test/extensions/transport_sockets/tls/context_impl_test.cc +++ b/test/extensions/transport_sockets/tls/context_impl_test.cc @@ -2000,9 +2000,9 @@ TEST_F(SslContextStatsTest, IncOnlyKnownCounters) { // fallback registration does not occur. So we test for the fallback only in // release builds. #ifdef NDEBUG - cipher = store_.findCounterByString("ssl.ciphers.fallback"); - ASSERT_TRUE(cipher.has_value()); - EXPECT_EQ(1, cipher->get().value()); + stat = store_.findCounterByString("ssl.ciphers.fallback"); + ASSERT_TRUE(stat.has_value()); + EXPECT_EQ(1, stat->get().value()); #endif }