Skip to content

Commit 27a6a5e

Browse files
authored
Start all threads at once in TestAtomicWriteFileHandle
1 parent 3a201fc commit 27a6a5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/accuracy_checker/tests/test_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ def test_multithreaded_atomic_file_write(self):
148148
for i in range(num_threads):
149149
thread = threading.Thread(target=thread_write_to_file, args=(target_file_path, data_chunks[i], i))
150150
threads.append(thread)
151-
thread.start()
151+
152+
for thread in threads:
153+
thread.start()
152154

153155
for thread in threads:
154156
thread.join()

0 commit comments

Comments
 (0)