Ensure ParallelApplicationEventsIntegrationTests passes on CI server

See gh-25616
This commit is contained in:
Sam Brannen 2020-12-23 10:16:13 +01:00
parent b0f404722e
commit 885f6dbab9
1 changed files with 4 additions and 3 deletions

View File

@ -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);
}