@@ -15,15 +15,15 @@ def test_add_expire_1000_records(benchmark: BenchmarkFixture) -> None:
|
15 | 15 | class_=_CLASS_IN, |
16 | 16 | ttl=60, |
17 | 17 | alias=f"test{id}.local.", |
18 | | -created=now, |
| 18 | +created=now + id, |
19 | 19 | ) |
20 | 20 | for id in range(1000) |
21 | 21 | ] |
22 | 22 | |
23 | 23 | @benchmark |
24 | 24 | def _expire_records() -> None: |
25 | 25 | cache.async_add_records(records) |
26 | | -cache.async_expire(now + 61_000) |
| 26 | +cache.async_expire(now + 100_000) |
27 | 27 | |
28 | 28 | |
29 | 29 | def test_expire_no_records_to_expire(benchmark: BenchmarkFixture) -> None: |
@@ -37,7 +37,7 @@ def test_expire_no_records_to_expire(benchmark: BenchmarkFixture) -> None:
|
37 | 37 | class_=_CLASS_IN, |
38 | 38 | ttl=60, |
39 | 39 | alias=f"test{id}.local.", |
40 | | -created=now, |
| 40 | +created=now + id, |
41 | 41 | ) |
42 | 42 | for id in range(1000) |
43 | 43 | ) |
|