Skip to content

Commit

Permalink
Update test_connector.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Oct 22, 2022
1 parent 9d95e8a commit 17e299e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2188,7 +2188,7 @@ def test_expired_ttl(self, monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr("aiohttp.connector.monotonic", lambda: 3)
assert dns_cache_table.expired("localhost")

def test_never_expire(self) -> None:
def test_never_expire(self, monkeypatch: pytest.MonkeyPatch) -> None:
dns_cache_table = _DNSCacheTable(ttl=None)
monkeypatch.setattr("aiohttp.connector.monotonic", lambda: 1)
dns_cache_table.add("localhost", ["127.0.0.1"])
Expand Down

0 comments on commit 17e299e

Please sign in to comment.