Skip to content

Commit 9ca263e

Browse files
committed
Merge remote-tracking branch 'upstream/master' into cache_struct
2 parents a4f889a + 88aa610 commit 9ca263e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

tests/test_cache.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@ def test_adding_same_record_to_cache_different_ttls(self):
4545
record1 = r.DNSAddress('a', const._TYPE_A, const._CLASS_IN, 1, b'a')
4646
record2 = r.DNSAddress('a', const._TYPE_A, const._CLASS_IN, 10, b'a')
4747
cache = r.DNSCache()
48-
cache.add(record1)
49-
cache.add(record2)
48+
cache.async_add_records([record1, record2])
5049
entry = r.DNSEntry(record2)
5150
cached_record = cache.get(entry)
5251
assert cached_record == record2
5352

54-
@unittest.skip('This bug in the implementation needs to be fixed.')
5553
def test_adding_same_record_to_cache_different_ttls(self):
5654
"""Verify we only get one record back.
5755
@@ -63,8 +61,7 @@ def test_adding_same_record_to_cache_different_ttls(self):
6361
record1 = r.DNSAddress('a', const._TYPE_A, const._CLASS_IN, 1, b'a')
6462
record2 = r.DNSAddress('a', const._TYPE_A, const._CLASS_IN, 10, b'a')
6563
cache = r.DNSCache()
66-
cache.add(record1)
67-
cache.add(record2)
64+
cache.async_add_records([record1, record2])
6865
cached_records = cache.get_all_by_details('a', const._TYPE_A, const._CLASS_IN)
6966
assert cached_records == [record2]
7067

0 commit comments

Comments
 (0)