Skip to content

Commit

Permalink
[GEOT-5869] Intermittent failure of JDBCTransactionStateTest caused b…
Browse files Browse the repository at this point in the history
…y finalizer logging
  • Loading branch information
bencaradocdavies committed Nov 13, 2017
1 parent 2f6e7d2 commit 1d40cb6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public void setUp() {
public Object answer(InvocationOnMock invocation) {
Object[] arguments = invocation.getArguments();
LogRecord logRecord = (LogRecord) arguments[0];
if (logRecord.getLevel() == Level.WARNING) {
if (logRecord.getLevel() == Level.WARNING
&& !logRecord.getSourceMethodName().equals("finalize")) {
warningsCount++;
}
return null;
Expand Down

0 comments on commit 1d40cb6

Please sign in to comment.