Revert "[fix][ci] Fix tests memory leak due to mockito-inline (#15513)" - #16820
Revert "[fix][ci] Fix tests memory leak due to mockito-inline (#15513)"#16820nodece wants to merge 1 commit into
Conversation
nicoloboschi
left a comment
There was a problem hiding this comment.
I don't see any suggestion in the javadoc that indicates the usage of clearInlineMocks() could cause the error we're facing, would you mind to indicate more details? @nodece
I just guess the log is related to #15513.
Link to https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#47 |
|
@shibd Thank you for your testing, I close this PR. |
This reverts commit 14b95ec.
Fixes #16582
Motivation
#15513 uses
clearInlineMocks()method to fix the memory leak, but it looks to introduce a new issue:I see a description of
clearInlineMocks()that seems to be relevant to this problem, so try to revert #15513.Documentation
Check the box below or label this PR directly.
Need to update docs?
doc-required(Your PR needs to update docs and you will update later)
doc-not-needed(Please explain why)
doc(Your PR contains doc changes)
doc-complete(Docs have been already added)