Skip to content

Commit a1cfaa0

Browse files
committed
fix
1 parent 257aa2b commit a1cfaa0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

langchain/tests/conftest.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,11 @@ def pipeline_id(api_client: v.ApiClient, org_id: str) -> Iterator[str]:
155155
)
156156
start = time.time()
157157
while True:
158-
response = pipelines.retrieve_documents(
159-
org_id, pipeline_id, request
160-
)
158+
response = pipelines.retrieve_documents(org_id, pipeline_id, request)
161159
docs = response.documents
162160
if len(docs) == 2:
163161
break
164-
if time.time() - start > 180:
162+
if time.formtime() - start > 180:
165163
msg = "Docs not retrieved in time"
166164
raise RuntimeError(msg)
167165
time.sleep(1)

0 commit comments

Comments
 (0)