gha failing on multithreaded t est

This commit is contained in:
Alvin Ryanputra 2025-04-16 19:27:45 -04:00
parent 605d078f9f
commit 78871fe1df

View file

@ -8,7 +8,7 @@ def multithreaded_sorter(unsorted_lists: list[list[int]]) -> list[list[int]]:
sorted_lists = [None] * len(unsorted_lists) sorted_lists = [None] * len(unsorted_lists)
# Use ThreadPoolExecutor to manage threads # Use ThreadPoolExecutor to manage threads
with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor: with concurrent.futures.ThreadPoolExecutor(max_workers=2) as executor:
# Submit all sorting tasks and map them to their original indices # Submit all sorting tasks and map them to their original indices
future_to_index = { future_to_index = {
executor.submit(sorter, unsorted_list): i executor.submit(sorter, unsorted_list): i