Skip to content

Commit

Permalink
adjusted constant to compare cached lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-stephens committed Sep 18, 2024
1 parent cf7b4d8 commit 06d6a2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testing/integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1425,8 +1425,7 @@ def test_external_lookup_cache(self):
second_duration = res[1]["results"]["A"]["duration"]
# a bit of a hacky test, but we're checking that if we query the same domain with the same nameserver,
# the second query has a much smaller response time than the first to show it's being cached
print(first_duration, second_duration)
self.assertTrue(first_duration / 1000 > second_duration, f"Second query should be faster than the first. {msg}")
self.assertTrue(first_duration / 50 > second_duration, f"Second query {second_duration} should be faster than the first {first_duration}")



Expand Down

0 comments on commit 06d6a2d

Please sign in to comment.