mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-22 10:59:22 +00:00
fix(standard-tests): fix BaseStoreAsyncTests.test_set_values_is_idempotent
(#32638)
The async version of the test should use the `ayield_keys` method instead of `yield_keys`. Otherwise tools such as `blockbuster` may trigger on a blocking call.
This commit is contained in:
parent
b5c44406eb
commit
b825f85bf2
@ -239,7 +239,7 @@ class BaseStoreAsyncTests(BaseStandardTests, Generic[V]):
|
||||
await kv_store.amset(key_value_pairs)
|
||||
await kv_store.amset(key_value_pairs)
|
||||
assert await kv_store.amget(["foo", "bar"]) == [foo, bar]
|
||||
assert sorted(kv_store.yield_keys()) == ["bar", "foo"]
|
||||
assert sorted([key async for key in kv_store.ayield_keys()]) == ["bar", "foo"]
|
||||
|
||||
async def test_get_can_get_same_value(
|
||||
self, kv_store: BaseStore[str, V], three_values: tuple[V, V, V]
|
||||
|
Loading…
Reference in New Issue
Block a user