summaryrefslogtreecommitdiffstats
path: root/aai-core/src/test/java
diff options
context:
space:
mode:
authorWilliam Reehil <william.reehil@att.com>2022-11-11 13:37:57 +0000
committerGerrit Code Review <gerrit@onap.org>2022-11-11 13:37:57 +0000
commit3b096f45f2e99a3ca0fa4e87476d8c4d232be26c (patch)
tree2a48b420e1efbeefbf5c4bd5c8ad7cf7960bf5ef /aai-core/src/test/java
parent72b44a38290334c46a9dedc0be1dadcd08520515 (diff)
parent11f38de0c6e9a7d04ececaf7d291648f4406ef21 (diff)
Merge "Partially resolve resource leak warnings in aai-common"
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();
}
}