diff options
author | zhanglikun <zhanglikun@cnnic.cn> | 2011-03-11 02:09:13 +0100 |
---|---|---|
committer | zhanglikun <zhanglikun@cnnic.cn> | 2011-03-11 02:09:13 +0100 |
commit | 7e385db1cb3baae0bcc5461c17a07062816cc5a6 (patch) | |
tree | 57f3c4226cf81b8055b7deae9d2c63e86529e00f /src/lib/cache | |
parent | [trac661] Changelog (diff) | |
download | kea-7e385db1cb3baae0bcc5461c17a07062816cc5a6.tar.xz kea-7e385db1cb3baae0bcc5461c17a07062816cc5a6.zip |
[trac661] Update the comments in test data file
Diffstat (limited to 'src/lib/cache')
-rw-r--r-- | src/lib/cache/tests/rrset_cache_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/cache/tests/testdata/message_fromWire9 | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/cache/tests/rrset_cache_unittest.cc b/src/lib/cache/tests/rrset_cache_unittest.cc index 90b24dffc6..b61f5c4ca4 100644 --- a/src/lib/cache/tests/rrset_cache_unittest.cc +++ b/src/lib/cache/tests/rrset_cache_unittest.cc @@ -74,7 +74,7 @@ TEST_F(RRsetCacheTest, lookup) { // Check whether the expired rrset entry will be removed automatically // when looking up. Name name_test("test.example.com."); - updateRRsetCache(cache_, name_test, 0); + updateRRsetCache(cache_, name_test, 0); // Add a rrset with TTL 0 to cache. EXPECT_FALSE(cache_.lookup(name_test, RRType::A())); } diff --git a/src/lib/cache/tests/testdata/message_fromWire9 b/src/lib/cache/tests/testdata/message_fromWire9 index d155e8cbcc..e2dbd06592 100644 --- a/src/lib/cache/tests/testdata/message_fromWire9 +++ b/src/lib/cache/tests/testdata/message_fromWire9 @@ -1,4 +1,6 @@ # +# The TTL for a record in answer section is 0, so it +# will expire immediately after being cached. # # A simple DNS response message # ID = 0x1035 @@ -6,7 +8,7 @@ # QDCOUNT=1, ANCOUNT=2, other COUNTS=0 # Question: test.example.org. IN A # Answer: -# test.example.org. 3600 IN A 192.0.2.1 +# test.example.org. 0000 IN A 192.0.2.1 # test.example.org. 7200 IN A 192.0.2.2 # 1035 8500 |