From: Francis Dupont Date: Tue, 3 Oct 2017 15:12:15 +0000 (+0200) Subject: [5369] Fixed comments in new unit tests X-Git-Tag: trac5361_base~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=604a4712acfb11b19b2ebd034937a61e47ce9553;p=thirdparty%2Fkea.git [5369] Fixed comments in new unit tests --- diff --git a/src/bin/dhcp4/tests/fqdn_unittest.cc b/src/bin/dhcp4/tests/fqdn_unittest.cc index 9698963714..264ec433b7 100644 --- a/src/bin/dhcp4/tests/fqdn_unittest.cc +++ b/src/bin/dhcp4/tests/fqdn_unittest.cc @@ -1107,9 +1107,8 @@ TEST_F(NameDhcpv4SrvTest, processRequestRenewFqdn) { "965B68B6D438D98E680BF10B09F3BCF", time(NULL), subnet_->getValid(), true); - // Create another Request message but with a different FQDN. Server - // should generate two NameChangeRequests: one to remove existing entry, - // another one to add new entry with updated domain-name. + // Create another Request message with the same FQDN. Server + // should generate no NameChangeRequests. Pkt4Ptr req2 = generatePktWithFqdn(DHCPREQUEST, Option4ClientFqdn::FLAG_S | Option4ClientFqdn::FLAG_E, "myhost.example.com.", @@ -1149,9 +1148,8 @@ TEST_F(NameDhcpv4SrvTest, processRequestRenewHostname) { "965B68B6D438D98E680BF10B09F3BCF", time(NULL), subnet_->getValid(), true); - // Create another Request message but with a different Hostname. Server - // should generate two NameChangeRequests: one to remove existing entry, - // another one to add new entry with updated domain-name. + // Create another Request message with the same Hostname. Server + // should generate no NameChangeRequests. Pkt4Ptr req2 = generatePktWithHostname(DHCPREQUEST, "myhost.example.com."); // Set interface for the incoming packet. The server requires it to