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 ca4eb97 commit 0a0ee91
Showing 1 changed file with 2 additions and 1 deletion.
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 0a0ee91

Please sign in to comment.