diff --git a/tests/hermes_cli/test_anon_auth_core.py b/tests/hermes_cli/test_anon_auth_core.py index 390c9a36a6..9c5b8f2f77 100644 --- a/tests/hermes_cli/test_anon_auth_core.py +++ b/tests/hermes_cli/test_anon_auth_core.py @@ -91,10 +91,10 @@ def portal(monkeypatch, tmp_path): anon_auth._mint_failed = False from hermes_cli import free_tier_bootstrap as _fb _fb.reset_for_tests() - # resolve_nous_access_token memoises the last token for 5 s across the process; a token minted + # resolve_nous_access_token memoises the last token for 5 s per profile home (dict); a token minted # by an earlier test must not be served to this one. from hermes_cli import auth as auth_mod - monkeypatch.setattr(auth_mod, "_RESOLVE_TOKEN_CACHE", None) + monkeypatch.setattr(auth_mod, "_RESOLVE_TOKEN_CACHE", {}) return fake