Skip to content

Commit

Permalink
fix: rocksdb tp unit failed
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxxoo committed Dec 14, 2023
1 parent 5238b07 commit c0e05d0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

import org.apache.commons.configuration2.Configuration;
import org.apache.commons.configuration2.PropertiesConfiguration;
import org.apache.hugegraph.backend.store.rocksdb.RocksDBOptions;
import org.apache.tinkerpop.gremlin.AbstractGraphProvider;
import org.apache.tinkerpop.gremlin.FeatureRequirement;
import org.apache.tinkerpop.gremlin.FeatureRequirements;
Expand Down Expand Up @@ -267,7 +268,8 @@ public Graph openTestGraph(final Configuration config) {
String graphName = config.getString(CoreOptions.STORE.name());
Class<?> testClass = (Class<?>) config.getProperty(TEST_CLASS);
String testMethod = config.getString(TEST_METHOD);

config.setProperty(RocksDBOptions.DATA_PATH.name(), config.getString(RocksDBOptions.DATA_PATH.name()) + "/" + graphName);
config.setProperty(RocksDBOptions.WAL_PATH.name(), config.getString(RocksDBOptions.WAL_PATH.name()) + "/" + graphName);
TestGraph testGraph = this.graphs.get(graphName);
if (testGraph == null) {
this.graphs.putIfAbsent(graphName, this.newTestGraph(config));
Expand Down

0 comments on commit c0e05d0

Please sign in to comment.