Skip to content

Commit bb6a1d3

Browse files
committed
[#1764] Address comments
1 parent 1346154 commit bb6a1d3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/lib/http/tests/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ libhttp_unittests_SOURCES += http_client_unittests.cc
5050
libhttp_unittests_SOURCES += http_server_test.h
5151
libhttp_unittests_SOURCES += http_server_unittests.cc
5252
if HAVE_OPENSSL
53+
libhttp_unittests_SOURCES += tls_response_creator_test.h
5354
libhttp_unittests_SOURCES += tls_server_unittests.cc
5455
libhttp_unittests_SOURCES += tls_client_unittests.cc
5556
endif

src/lib/http/tests/http_client_test.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,13 +859,13 @@ class BaseHttpClientTest : public HttpListenerTest {
859859
io_service_->stop();
860860
}
861861

862-
// We should have 1 connect.
862+
// We should have 2 connects.
863863
EXPECT_EQ(2, monitor.connect_cnt_);
864864
// We should have 2 handshakes when TLS is enabled.
865865
if (client_context_) {
866866
EXPECT_EQ(2, monitor.handshake_cnt_);
867867
}
868-
// We should have 0 closes
868+
// We should have 1 close.
869869
EXPECT_EQ(1, monitor.close_cnt_);
870870
// We should have a valid fd.
871871
ASSERT_GT(monitor.registered_fd_, -1);

src/lib/http/tests/http_server_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ class BaseListenerTest : public ::testing::Test {
545545
ASSERT_TRUE(client->isConnectionAlive());
546546

547547
// Run IO service for 1000ms. The idle time is set to 500ms, so
548-
// the connection should be closed by the server while we wait here.
548+
// the connection should be closed by the server while we wait here.
549549
runIOService(1000);
550550

551551
// Make sure the connection has been closed.

src/lib/http/tests/tls_server_unittests.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ TEST_F(HttpsListenerTest, listen) {
7878
testListen();
7979
}
8080

81-
8281
// This test verifies that persistent HTTP connection can be established when
8382
// "Connection: Keep-Alive" header value is specified.
8483
TEST_F(HttpsListenerTest, keepAlive) {

0 commit comments

Comments
 (0)