Skip to content

Commit 14ffdc3

Browse files
committed
fix test
1 parent b93c181 commit 14ffdc3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/integration/vector_io/test_openai_vector_stores.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ def test_openai_vector_store_file_batch_create_and_retrieve(compat_client_with_e
915915

916916
# Create multiple files
917917
file_ids = []
918-
for i in range(3):
918+
for i in range(2):
919919
with BytesIO(f"This is batch test file {i}".encode()) as file_buffer:
920920
file_buffer.name = f"batch_test_{i}.txt"
921921
file = compat_client.files.create(file=file_buffer, purpose="assistants")
@@ -936,7 +936,7 @@ def test_openai_vector_store_file_batch_create_and_retrieve(compat_client_with_e
936936
assert hasattr(batch, "created_at")
937937

938938
# Wait for batch processing to complete
939-
max_retries = 30 # 30 seconds max wait
939+
max_retries = 60 # 60 seconds max wait (increased for file processing delays)
940940
retries = 0
941941
retrieved_batch = None
942942
while retries < max_retries:
@@ -981,7 +981,7 @@ def test_openai_vector_store_file_batch_list_files(compat_client_with_empty_stor
981981
)
982982

983983
# Wait for batch processing to complete
984-
max_retries = 30 # 30 seconds max wait
984+
max_retries = 60 # 60 seconds max wait (increased for file processing delays)
985985
retries = 0
986986
while retries < max_retries:
987987
retrieved_batch = compat_client.vector_stores.file_batches.retrieve(
@@ -1098,7 +1098,6 @@ def test_openai_vector_store_file_batch_retrieve_contents(compat_client_with_emp
10981098
file_data = [
10991099
("test_file_1.txt", b"This is the content of test file 1"),
11001100
("test_file_2.txt", b"This is the content of test file 2"),
1101-
("test_file_3.txt", b"This is the content of test file 3"),
11021101
]
11031102

11041103
file_ids = []
@@ -1115,7 +1114,7 @@ def test_openai_vector_store_file_batch_retrieve_contents(compat_client_with_emp
11151114
)
11161115

11171116
# Wait for batch processing to complete
1118-
max_retries = 30 # 30 seconds max wait
1117+
max_retries = 60 # 60 seconds max wait (increased for file processing delays)
11191118
retries = 0
11201119
while retries < max_retries:
11211120
retrieved_batch = compat_client.vector_stores.file_batches.retrieve(

0 commit comments

Comments
 (0)