GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — Disable assertion by default in JMH tests by laosijikaichele · Pull Request #14878 · netty/netty Conversation
|
|
Since several JMH tests use netty/microbench/src/main/java/io/netty/microbench/handler/ssl/SslEngineHandshakeBenchmark.java Line 60 in 24479a0
To be compatible with that, we can make assertion always be enabled in package |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4a3cdab to
791e597
Compare
|
Sounds good |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
791e597 to
b76b104
Compare
b76b104 to
9f7c4cb
Compare
|
Good catch! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Motivation: Disable assertion by default in JMH tests, to exclude the noise introduced by assertion. Modification: Disable assertion in default constructor of `AbstractMicrobenchmark`, also make existing tests `FastThreadLocalSlowPathBenchmark` and `AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark` aligned with this. Assertion will always be enabled in package `io.netty.microbench.*`. Result: Fixes #14876. --------- Co-authored-by: laosijikaichele <laosijikaichele>
Motivation: Disable assertion by default in JMH tests, to exclude the noise introduced by assertion. Modification: Disable assertion in default constructor of `AbstractMicrobenchmark`, also make existing tests `FastThreadLocalSlowPathBenchmark` and `AdaptiveByteBufAllocatorConcurrentNoCacheBenchmark` aligned with this. Assertion will always be enabled in package `io.netty.microbench.*`. Result: Fixes #14876. Co-authored-by: old driver <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
JMH: assertion should be disabled by default when doing JMH test
There was an error while loading. Please reload this page.