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:
Christophe Bornet 2025-08-21 16:07:46 +02:00 committed by GitHub
parent b5c44406eb
commit b825f85bf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]