mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-03 03:38:06 +00:00
Unset Cache in Tests (#7362)
This is impacting other unit tests that use callbacks since the cache is still set (just empty)
This commit is contained in:
parent
3ce4e46c8c
commit
4e180dc54e
@ -47,6 +47,7 @@ def set_cache_and_teardown(request: FixtureRequest) -> Generator[None, None, Non
|
||||
# Will be run after each test
|
||||
if langchain.llm_cache:
|
||||
langchain.llm_cache.clear()
|
||||
langchain.llm_cache = None
|
||||
else:
|
||||
raise ValueError("Cache not set. This should never happen.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user