mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-24 12:17:24 +00:00
HHH-8127 OutOfMemoryError when running tests
This commit is contained in:
parent
3343e6d6c3
commit
11464ea097
@ -100,7 +100,24 @@ private boolean isAllTestsIgnored() {
|
||||
return isAllTestsIgnored;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@Override
|
||||
public void run(RunNotifier notifier) {
|
||||
super.run( notifier );
|
||||
|
||||
cleanup();
|
||||
}
|
||||
|
||||
private void cleanup() {
|
||||
if ( computedTestMethods != null && !computedTestMethods.isEmpty() ) {
|
||||
computedTestMethods.clear();
|
||||
computedTestMethods = null;
|
||||
}
|
||||
testInstance = null;
|
||||
testClassMetadata = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Statement withBeforeClasses(Statement statement) {
|
||||
if ( isAllTestsIgnored() ) {
|
||||
return super.withBeforeClasses( statement );
|
||||
|
Loading…
x
Reference in New Issue
Block a user