Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit c290a464 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix testcase: wait on all threads only if execution is done multithreaded

parent a48e2d67
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,9 @@ public class HeavyLorrySimulation
PrintRuns(jobContainer, null);
jobContainer.Execute(multiThreaded);
jobContainer.WaitFinished();
if (multiThreaded) {
jobContainer.WaitFinished();
}
Assert.IsTrue(jobContainer.AllCompleted);
Assert.IsTrue(jobContainer.Runs.TrueForAll(runEntry => runEntry.Success));
PrintRuns(jobContainer, fileWriter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment