GitHub user cakofony opened a pull request:
https://github.com/apache/logging-log4j2/pull/204
Prevent test flakes
* Apply ThreadContextRule to ThreadContext tests
* Standardize surefire forkCount on 1, rather than 2*CORES.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cakofony/logging-log4j2
ckozak/prevent_test_flakes
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/204.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #204
----
commit 192a0b32aa1d30970167f7b91842790533b70222
Author: Carter Kozak <ckozak@...>
Date: 2018-08-08T16:12:23Z
Apply ThreadContextRule to ThreadContext tests
commit ef5cc1793833d508faa89193c8f1e4c587635223
Author: Carter Kozak <ckozak@...>
Date: 2018-08-08T16:24:46Z
Simplify surefire configuration
Standardize forkCount on 1, rather than 2*CORES.
log4j-core uses one fork which is not reused. Most of our time
spent in tests is running those in log4j-core. Applying this
configuration to all modules prevents test flakes.
----
---