Partially resolve resource leak warnings in aai-common
[aai/aai-common.git] / aai-core / src / test / java / org / onap / aai / stress / IndexStressTest.java
index fb7ba40..78f5f08 100644 (file)
@@ -69,8 +69,7 @@ public class IndexStressTest extends AAISetup {
             if (i % 1000 == 0) {
                 LOGGER.debug("Committing up to index {}", i);
                 tx.commit();
-                tx = AAIGraph.getInstance().getGraph().newTransaction();
-                g = tx.traversal();
+                g = AAIGraph.getInstance().getGraph().newTransaction().traversal();
             }
         }