Skip to content

Commit

Permalink
Rename test to match pattern, fix leaking statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaDemianenko committed Sep 4, 2017
1 parent e03921c commit 6cc7c14
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -104,7 +104,7 @@
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;

public class QueryExecutionLocks
public class QueryExecutionLocksIT
{

@Rule
Expand Down Expand Up @@ -968,7 +968,10 @@ void lockAcquired( boolean exclusive, ResourceType resourceType, long... ids )
{
ThreadToStatementContextBridge bridge =
databaseRule.resolveDependency( ThreadToStatementContextBridge.class );
bridge.get().readOperations().schemaStateFlush();
try ( Statement statement = bridge.get() )
{
statement.readOperations().schemaStateFlush();
}
}
executed = true;
}
Expand Down

0 comments on commit 6cc7c14

Please sign in to comment.