]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1764] Address comments
authorFrancis Dupont <fdupont@isc.org>
Wed, 21 Aug 2024 18:35:35 +0000 (20:35 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 22 Aug 2024 08:23:03 +0000 (10:23 +0200)
src/lib/http/tests/Makefile.am
src/lib/http/tests/http_client_test.h
src/lib/http/tests/http_server_test.h
src/lib/http/tests/tls_server_unittests.cc

index c77477c2f00268e94611923608dcd36e69d24a6a..232d6e2b0cfb5d9f6d6f2e97b752a6b355f2442b 100644 (file)
@@ -50,6 +50,7 @@ libhttp_unittests_SOURCES += http_client_unittests.cc
 libhttp_unittests_SOURCES += http_server_test.h
 libhttp_unittests_SOURCES += http_server_unittests.cc
 if HAVE_OPENSSL
+libhttp_unittests_SOURCES += tls_response_creator_test.h
 libhttp_unittests_SOURCES += tls_server_unittests.cc
 libhttp_unittests_SOURCES += tls_client_unittests.cc
 endif
index 6c95201aeb7d9c5d8f36cf4c181460b6b61af532..90d058ef078458258d5137d665544741627895f3 100644 (file)
@@ -859,13 +859,13 @@ public:
                     io_service_->stop();
                 }
 
-                // We should have 1 connect.
+                // We should have 2 connects.
                 EXPECT_EQ(2, monitor.connect_cnt_);
                 // We should have 2 handshakes when TLS is enabled.
                 if (client_context_) {
                     EXPECT_EQ(2, monitor.handshake_cnt_);
                 }
-                // We should have 0 closes
+                // We should have 1 close.
                 EXPECT_EQ(1, monitor.close_cnt_);
                 // We should have a valid fd.
                 ASSERT_GT(monitor.registered_fd_, -1);
index 999869930cb2474e7b7922733bf487b99d2bd3fb..a87c411a1a46110869f30613125bcaafc6f8511f 100644 (file)
@@ -545,7 +545,7 @@ public:
         ASSERT_TRUE(client->isConnectionAlive());
 
         // Run IO service for 1000ms. The idle time is set to 500ms, so
-        // the connection should be closed by the server while we  wait here.
+        // the connection should be closed by the server while we wait here.
         runIOService(1000);
 
         // Make sure the connection has been closed.
index be2592aac340ceb518d0d5aed025d9ebfd84effd..e8cabfb248bf2823f30b6a3f5e99ae9dd88d0dc6 100644 (file)
@@ -78,7 +78,6 @@ TEST_F(HttpsListenerTest, listen) {
     testListen();
 }
 
-
 // This test verifies that persistent HTTP connection can be established when
 // "Connection: Keep-Alive" header value is specified.
 TEST_F(HttpsListenerTest, keepAlive) {