Skip to content

Commit

Permalink
Revert "HHH-8127 OutOfMemoryError when running tests"
Browse files Browse the repository at this point in the history
This reverts commit 11464ea.
  • Loading branch information
stliu committed Apr 25, 2013
1 parent 377c300 commit dfc8c4b
Showing 1 changed file with 1 addition and 18 deletions.
Expand Up @@ -100,24 +100,7 @@ private boolean isAllTestsIgnored() {
return isAllTestsIgnored;
}


@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
@Override
protected Statement withBeforeClasses(Statement statement) {
if ( isAllTestsIgnored() ) {
return super.withBeforeClasses( statement );
Expand Down

0 comments on commit dfc8c4b

Please sign in to comment.