@@ -915,7 +915,7 @@ def test_openai_vector_store_file_batch_create_and_retrieve(compat_client_with_e
915
915
916
916
# Create multiple files
917
917
file_ids = []
918
- for i in range (3 ):
918
+ for i in range (2 ):
919
919
with BytesIO (f"This is batch test file { i } " .encode ()) as file_buffer :
920
920
file_buffer .name = f"batch_test_{ i } .txt"
921
921
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
936
936
assert hasattr (batch , "created_at" )
937
937
938
938
# 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)
940
940
retries = 0
941
941
retrieved_batch = None
942
942
while retries < max_retries :
@@ -981,7 +981,7 @@ def test_openai_vector_store_file_batch_list_files(compat_client_with_empty_stor
981
981
)
982
982
983
983
# 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)
985
985
retries = 0
986
986
while retries < max_retries :
987
987
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
1098
1098
file_data = [
1099
1099
("test_file_1.txt" , b"This is the content of test file 1" ),
1100
1100
("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" ),
1102
1101
]
1103
1102
1104
1103
file_ids = []
@@ -1115,7 +1114,7 @@ def test_openai_vector_store_file_batch_retrieve_contents(compat_client_with_emp
1115
1114
)
1116
1115
1117
1116
# 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)
1119
1118
retries = 0
1120
1119
while retries < max_retries :
1121
1120
retrieved_batch = compat_client .vector_stores .file_batches .retrieve (
0 commit comments