1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

pytest/dns_aging: use correct variable names

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Douglas Bagnall 2021-11-19 16:12:43 +13:00 committed by Noel Power
parent b5e2651f1c
commit 524ca3c6d2

View File

@ -2146,7 +2146,7 @@ class TestDNSAging(DNSTest):
# D is scavengeable # D is scavengeable
atime = self.dns_update_record(A, A).dwTimeStamp atime = self.dns_update_record(A, A).dwTimeStamp
btime = self.ldap_update_record(B, B, dwTimeStamp=now-20).dwTimeStamp btime = self.ldap_update_record(B, B, dwTimeStamp=now-20).dwTimeStamp
btime = self.ldap_update_record(C, C, dwTimeStamp=now-40).dwTimeStamp ctime = self.ldap_update_record(C, C, dwTimeStamp=now-40).dwTimeStamp
dtime = self.ldap_update_record(D, D, dwTimeStamp=now-60).dwTimeStamp dtime = self.ldap_update_record(D, D, dwTimeStamp=now-60).dwTimeStamp
self.assert_soon_after(atime, now) self.assert_soon_after(atime, now)
self.assert_timestamps_equal(btime, now-20) self.assert_timestamps_equal(btime, now-20)
@ -2158,7 +2158,7 @@ class TestDNSAging(DNSTest):
# D should be gone (tombstoned) # D should be gone (tombstoned)
r = self.get_unique_txt_record(D, D) r = self.get_unique_txt_record(D, D)
self.assertIsNone(r) self.assertIsNone(r)
r = dns_query(self, D, qtype=dns.DNS_QTYPE_TXT) r = self.dns_query(D, qtype=dns.DNS_QTYPE_TXT)
self.assertEqual(r.ancount, 0) self.assertEqual(r.ancount, 0)
recs = self.ldap_get_records(D) recs = self.ldap_get_records(D)
self.assertEqual(len(recs), 1) self.assertEqual(len(recs), 1)