We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6f1fda commit 854fef6Copy full SHA for 854fef6
1 file changed
tests/benchmarks/test_cache.py
@@ -15,15 +15,15 @@ def test_add_expire_1000_records(benchmark: BenchmarkFixture) -> None:
15
class_=_CLASS_IN,
16
ttl=60,
17
alias=f"test{id}.local.",
18
- created=now,
+ created=now + id,
19
)
20
for id in range(1000)
21
]
22
23
@benchmark
24
def _expire_records() -> None:
25
cache.async_add_records(records)
26
- cache.async_expire(now + 61_000)
+ cache.async_expire(now + 100_000)
27
28
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
38
39
40
41
42
43
0 commit comments