]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[805] updated the comments for listenAddresses() so that they match
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 4 Jan 2012 04:47:08 +0000 (20:47 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 4 Jan 2012 04:47:08 +0000 (20:47 -0800)
what the function actually does.  The previous one was incorrect and just
confusing.

src/lib/testutils/portconfig.h

index a4dc2bd6bdfb76f90ddea5fdce8623642e70bad8..b538478deb77a78ec3414e0efe3a0e1643316c9e 100644 (file)
@@ -46,7 +46,7 @@ template<class Server>
 void
 listenAddresses(Server& server) {
     using namespace isc::server_common::portconfig;
-    // Default value should be fully recursive
+    // In this test we assume the address list is originally empty.
     EXPECT_TRUE(server.getListenAddresses().empty());
 
     // Try putting there some addresses
@@ -61,7 +61,8 @@ listenAddresses(Server& server) {
     addresses.clear();
     EXPECT_EQ(2, server.getListenAddresses().size());
 
-    // Did it return to fully recursive?
+    // If we set to an empty list next, the server configuration should
+    // become empty, too.
     server.setListenAddresses(addresses);
     EXPECT_TRUE(server.getListenAddresses().empty());
 }