summaryrefslogtreecommitdiffstats
path: root/aai-core/src/test/java
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2022-11-09 11:19:54 +0000
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2022-11-09 11:22:18 +0000
commit11f38de0c6e9a7d04ececaf7d291648f4406ef21 (patch)
treeb6fd0c7808cab91447b5f8b42a5709e3db2fefb9 /aai-core/src/test/java
parentfbb02159b84435cf37221ae8ae5e0045167be15a (diff)
Partially resolve resource leak warnings in aai-common
Issue-ID: AAI-3585 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: Ic871d58bafb385737ecea6ea18c2fb589f4dc369
Diffstat (limited to 'aai-core/src/test/java')
-rw-r--r--aai-core/src/test/java/org/onap/aai/stress/IndexStressTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/aai-core/src/test/java/org/onap/aai/stress/IndexStressTest.java b/aai-core/src/test/java/org/onap/aai/stress/IndexStressTest.java
index fb7ba400..78f5f089 100644
--- a/aai-core/src/test/java/org/onap/aai/stress/IndexStressTest.java
+++ b/aai-core/src/test/java/org/onap/aai/stress/IndexStressTest.java
@@ -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();
}
}