Skip to content

Commit b28ebbd

Browse files
committed
Fix journey tests due to change to async connect_to_x logic
1 parent 270a03b commit b28ebbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

journey_tests/journeys.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ def __init__(self, client: WeaviateAsyncClient) -> None:
4141

4242
@classmethod
4343
async def use(cls) -> "AsyncJourneys":
44-
return cls(await connect_to_local(use_async=True))
44+
client = connect_to_local(use_async=True)
45+
await client.connect()
46+
return cls(client)
4547

4648
async def close(self) -> None:
4749
await self.__client.close()

0 commit comments

Comments
 (0)