@@ -199,7 +199,7 @@ def test_multi_upload(self):
199199 )
200200
201201 # stubber expects responses in order, so disable multi-threading.
202- with mock .patch ('quilt3.data_transfer.s3_threads ' , 1 ):
202+ with mock .patch ('quilt3.data_transfer.s3_transfer_config.max_request_concurrency ' , 1 ):
203203 urls = data_transfer .copy_file_list ([
204204 (path1 .as_uri (), 's3://example1/foo.csv' , path1 .stat ().st_size ),
205205 (path2 .as_uri (), 's3://example2/foo.txt' , path2 .stat ().st_size ),
@@ -360,7 +360,7 @@ def test_multipart_upload(self):
360360 }
361361 )
362362
363- with mock .patch ('quilt3.data_transfer.s3_threads ' , 1 ):
363+ with mock .patch ('quilt3.data_transfer.s3_transfer_config.max_request_concurrency ' , 1 ):
364364 data_transfer .copy_file_list ([
365365 (path .resolve ().as_uri (), f's3://example/{ name } ' , path .stat ().st_size ),
366366 ])
@@ -429,7 +429,7 @@ def test_multipart_copy(self):
429429 }
430430 )
431431
432- with mock .patch ('quilt3.data_transfer.s3_threads ' , 1 ):
432+ with mock .patch ('quilt3.data_transfer.s3_transfer_config.max_request_concurrency ' , 1 ):
433433 data_transfer .copy_file_list ([
434434 ('s3://example1/large_file1.npy' , 's3://example2/large_file2.npy' , size ),
435435 ])
0 commit comments