mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Ensure ParallelApplicationEventsIntegrationTests passes on CI server
See gh-25616
This commit is contained in:
+4
-3
@@ -74,9 +74,10 @@ class ParallelApplicationEventsIntegrationTests {
|
||||
|
||||
assertThat(payloads).hasSize(10);
|
||||
assertThat(testNames).hasSize(10);
|
||||
// There are probably 10 different thread names, but we really just want
|
||||
// to assert that at least a few different threads were used.
|
||||
assertThat(threadNames).hasSizeGreaterThanOrEqualTo(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 seems to have fewer threads available.
|
||||
assertThat(threadNames).hasSizeGreaterThanOrEqualTo(2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user