You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2022/07/29 06:24:54 UTC
[uima-uimafit] 01/01: No issue: Relax CPE test condition
This is an automated email from the ASF dual-hosted git repository.
rec pushed a commit to branch No-issue-relax-CPE-test-condition
in repository https://gitbox.apache.org/repos/asf/uima-uimafit.git
commit dfad1d18b84d672e47c718a6f7f3b3861bcab4e3
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Fri Jul 29 08:24:50 2022 +0200
No issue: Relax CPE test condition
- On Windows, this CPE test regularly ends with a larger number of items processed ~62 - so let's relax this a bit to make the test less flaky
---
.../java/org/apache/uima/fit/cpe/CpePipelineFailureHandlingTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/uimafit-cpe/src/test/java/org/apache/uima/fit/cpe/CpePipelineFailureHandlingTest.java b/uimafit-cpe/src/test/java/org/apache/uima/fit/cpe/CpePipelineFailureHandlingTest.java
index 247fde9..4a90c4e 100644
--- a/uimafit-cpe/src/test/java/org/apache/uima/fit/cpe/CpePipelineFailureHandlingTest.java
+++ b/uimafit-cpe/src/test/java/org/apache/uima/fit/cpe/CpePipelineFailureHandlingTest.java
@@ -51,8 +51,9 @@ public class CpePipelineFailureHandlingTest {
// Ignore
}
- assertThat(processed.get()).as("CPE stop processing soon after reader threw an exception")
- .isBetween(failAfter, failAfter + getRuntime().availableProcessors());
+ assertThat(processed.get()) //
+ .as("CPE stop processing soon after reader threw an exception") //
+ .isBetween(failAfter, failAfter + (4 * getRuntime().availableProcessors()));
}
public static class Reader extends JCasCollectionReader_ImplBase {