one small test rearrangement

Signed-off-by: raver119 <raver119@gmail.com>
master
raver119 2020-03-02 19:52:11 +03:00
parent c54cdaab75
commit 0f581e74e3
1 changed files with 3 additions and 1 deletions

View File

@ -851,9 +851,11 @@ public class RandomTests extends BaseNd4jTest {
threads[x].start();
}
for (int x = 0; x < threads.length; x++) {
// we want all threads finished before comparing arrays
for (int x = 0; x < threads.length; x++)
threads[x].join();
for (int x = 0; x < threads.length; x++) {
assertNotEquals(null, list.get(x));
if (x > 0) {