This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch fix-jenkins
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/fix-jenkins by this push:
new 924fce835 relax timeout which makes test really flaky, we cannot
guarantee a thread will make x operations in a given time
924fce835 is described below
commit 924fce835a8708dce60ca56a13574472f45ddf0e
Author: Olivier Lamy <[email protected]>
AuthorDate: Sun Mar 8 21:36:32 2026 +1000
relax timeout which makes test really flaky, we cannot guarantee a thread
will make x operations in a given time
Signed-off-by: Olivier Lamy <[email protected]>
---
.../maven/plugin/surefire/extensions/E2ETest.java | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git
a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/extensions/E2ETest.java
b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/extensions/E2ETest.java
index 6de35f6ee..2caaec39c 100644
---
a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/extensions/E2ETest.java
+++
b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/extensions/E2ETest.java
@@ -40,8 +40,6 @@
import org.apache.maven.surefire.api.booter.Command;
import org.apache.maven.surefire.api.event.Event;
import org.apache.maven.surefire.api.fork.ForkNodeArguments;
-import org.apache.maven.surefire.api.report.OutputReportEntry;
-import org.apache.maven.surefire.api.report.TestOutputReceiver;
import org.apache.maven.surefire.api.report.TestOutputReportEntry;
import org.apache.maven.surefire.booter.spi.EventChannelEncoder;
import
org.apache.maven.surefire.booter.spi.SurefireMasterProcessChannelProcessorFactory;
@@ -126,12 +124,12 @@ public void handleEvent(@Nonnull Event event) {
Thread t = new Thread() {
@Override
public void run() {
- TestOutputReceiver<OutputReportEntry> target = new
TestOutputReceiver() {
- @Override
- public void writeTestOutput(OutputReportEntry reportEntry)
{
- encoder.testOutput(stdOutln(reportEntry.getLog()));
- }
- };
+ // TestOutputReceiver<OutputReportEntry> target
= new TestOutputReceiver() {
+ // @Override
+ // public void
writeTestOutput(OutputReportEntry reportEntry) {
+ //
encoder.testOutput(stdOutln(reportEntry.getLog()));
+ // }
+ // };
// PrintStream out = System.out;
// PrintStream err = System.err;
@@ -167,9 +165,9 @@ public void writeTestOutput(OutputReportEntry reportEntry) {
// 1.0 seconds while using the encoder/decoder
assertThat(readTime.get())
.describedAs("The performance test should assert 1.0 s of read
time. "
- + "The limit 10 s guarantees that the read time does
not exceed this limit on overloaded CPU.")
+ + "The limit 30 s guarantees that the read time does
not exceed this limit on overloaded CPU.")
.isPositive()
- .isLessThanOrEqualTo(10_000L);
+ .isLessThanOrEqualTo(30_000L);
}
@Test(timeout = 10_000L)