From 836976d7328464bbe5939dd68c58b48678413207 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 4 Feb 2021 13:41:47 +0100 Subject: [PATCH] Increase fudge factor --- .../event/ParallelApplicationEventsIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/event/ParallelApplicationEventsIntegrationTests.java b/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/event/ParallelApplicationEventsIntegrationTests.java index 2b3d18b682..4dda66edfe 100644 --- a/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/event/ParallelApplicationEventsIntegrationTests.java +++ b/spring-test/src/test/java/org/springframework/test/context/junit/jupiter/event/ParallelApplicationEventsIntegrationTests.java @@ -77,7 +77,7 @@ class ParallelApplicationEventsIntegrationTests { assertThat(testNames).hasSize(10); // Skip the following assertion entirely if the thread count is too low. - if (ManagementFactory.getThreadMXBean().getThreadCount() >= 2) { + if (ManagementFactory.getThreadMXBean().getThreadCount() >= 4) { // There are probably 10 different thread names on a developer's machine, // but we really just want to assert that at least two different threads // were used, since the CI server often has fewer threads available.