This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-math.git
The following commit(s) were added to refs/heads/master by this push: new fb68dfd Shutdown execution services once the results are taken. fb68dfd is described below commit fb68dfd3e80e1623fb54cc3ecc413ad8ca179df7 Author: Milos Gligoric <milos.gligo...@gmail.com> AuthorDate: Sat Jan 9 11:33:47 2021 -0600 Shutdown execution services once the results are taken. Closes #170. --- .../commons/math4/analysis/integration/gauss/BaseRuleFactoryTest.java | 1 + .../org/apache/commons/math4/random/SynchronizedRandomGeneratorTest.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/test/java/org/apache/commons/math4/analysis/integration/gauss/BaseRuleFactoryTest.java b/src/test/java/org/apache/commons/math4/analysis/integration/gauss/BaseRuleFactoryTest.java index 651339c..867a841 100644 --- a/src/test/java/org/apache/commons/math4/analysis/integration/gauss/BaseRuleFactoryTest.java +++ b/src/test/java/org/apache/commons/math4/analysis/integration/gauss/BaseRuleFactoryTest.java @@ -59,6 +59,7 @@ public class BaseRuleFactoryTest { for (Future<Pair<double[], double[]>> f : results) { f.get(); } + exec.shutdown(); // Assertion would fail if "getRuleInternal" were not "synchronized". final int n = RuleBuilder.getNumberOfCalls(); diff --git a/src/test/java/org/apache/commons/math4/random/SynchronizedRandomGeneratorTest.java b/src/test/java/org/apache/commons/math4/random/SynchronizedRandomGeneratorTest.java index bc58b13..b953871 100644 --- a/src/test/java/org/apache/commons/math4/random/SynchronizedRandomGeneratorTest.java +++ b/src/test/java/org/apache/commons/math4/random/SynchronizedRandomGeneratorTest.java @@ -114,6 +114,7 @@ public class SynchronizedRandomGeneratorTest { for (int i = 0; i < numGenerators; i++) { values[i] = results.get(i).get(); } + exec.shutdown(); return values; } }