Ensure ParallelApplicationEventsIntegrationTests passes on CI server
See gh-25616
This commit is contained in:
parent
b0f404722e
commit
885f6dbab9
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue