From de19650f6f12acb872902a1b558efe16940086a3 Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Wed, 3 Jul 2019 16:59:03 +0200 Subject: [PATCH] [#709,!407] Minor updates to the server unittests as a result of review. - Fixed a typo in the toElement test name, - Added missing whitespace - Fixed a typo in getByTag test description. --- src/lib/database/tests/server_unittest.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/database/tests/server_unittest.cc b/src/lib/database/tests/server_unittest.cc index 8cc0ceb5a7..63e189bcc4 100644 --- a/src/lib/database/tests/server_unittest.cc +++ b/src/lib/database/tests/server_unittest.cc @@ -35,8 +35,8 @@ TEST(ServerTest, tooLongDescription) { BadValue); } -// Tests that toElement method works well. -TEST(ServerTest, toEDlement) { +// Tests that toElement method returns expected JSON map. +TEST(ServerTest, toElement) { ServerPtr server1 = Server::create(ServerTag("foo"), "a server"); std::string expected1 = "{" "\"server-tag\": \"foo\"," @@ -44,7 +44,7 @@ TEST(ServerTest, toEDlement) { " }"; isc::test::runToElementTest(expected1, *server1); - ServerPtr server2 =Server::create(ServerTag("bar")); + ServerPtr server2 = Server::create(ServerTag("bar")); std::string expected2= "{" "\"server-tag\": \"bar\"," "\"description\": \"\"" @@ -52,7 +52,7 @@ TEST(ServerTest, toEDlement) { isc::test::runToElementTest(expected2, *server2); } -// Tests that it is possible to fetch server by tag fromn the collection. +// Tests that it is possible to fetch server by tag from the collection. TEST(ServerFetcherTest, getByTag) { ServerCollection servers; -- 2.47.2