]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1779] update comment for increased sleep time
authorJelte Jansen <jelte@isc.org>
Wed, 14 Mar 2012 16:51:17 +0000 (17:51 +0100)
committerJelte Jansen <jelte@isc.org>
Wed, 14 Mar 2012 16:51:17 +0000 (17:51 +0100)
src/lib/cache/tests/negative_cache_unittest.cc

index 27f713da6180a7fe5bd0161019bdeb9ad184aca6..4935e4a6af843e4002bf4b5b03d43ed0188639c8 100644 (file)
@@ -83,6 +83,9 @@ TEST_F(NegativeCacheTest, testNXDOMAIN){
     EXPECT_GE(soa_ttl.getValue(), 172799);
     EXPECT_LE(soa_ttl.getValue(), 172800);
 
+    // Sleep for 2 seconds. 2 seconds to make sure the final range check
+    // does not overlap with the original ones (in which case this test
+    // would erroneously pass if the ttl value is not changed)
     sleep(2);
 
     // Query nonexist.example.com again
@@ -209,6 +212,9 @@ TEST_F(NegativeCacheTest, testNoerrorNodata){
     messageFromFile(msg_nodata2, "message_nodata_with_soa.wire");
     msg_nodata2.makeResponse();
 
+    // Sleep for 2 seconds. 2 seconds to make sure the final range check
+    // does not overlap with the original ones (in which case this test
+    // would erroneously pass if the ttl value is not changed)
     sleep(2);
 
     EXPECT_TRUE(cache->lookup(example_dot_com, RRType::MX(), RRClass::IN(), msg_nodata2));