Skip to content

Commit

Permalink
[MCKik4qR] Remove Relationship Constraint Feature Flag (again) (neo4j…
Browse files Browse the repository at this point in the history
  • Loading branch information
gem-neo4j authored May 2, 2023
1 parent 4d0e647 commit 1bef681
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions core/src/test/java/apoc/meta/MetaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.junit.Rule;
import org.junit.Test;
import org.mockito.Mockito;
import org.neo4j.configuration.GraphDatabaseInternalSettings;
import org.neo4j.configuration.GraphDatabaseSettings;
import org.neo4j.graphdb.*;
import org.neo4j.test.rule.DbmsRule;
Expand Down Expand Up @@ -58,8 +57,7 @@ public class MetaTest {
public DbmsRule db = new ImpermanentDbmsRule()
.withSetting(GraphDatabaseSettings.procedure_unrestricted, singletonList("apoc.*"))
.withSetting(newBuilder( "internal.dbms.debug.track_cursor_close", BOOL, false ).build(), false)
.withSetting(newBuilder( "internal.dbms.debug.trace_cursors", BOOL, false ).build(), false)
.withSetting(GraphDatabaseInternalSettings.rel_unique_constraints, true);
.withSetting(newBuilder( "internal.dbms.debug.trace_cursors", BOOL, false ).build(), false);

@Before
public void setUp() {
Expand Down
4 changes: 1 addition & 3 deletions core/src/test/java/apoc/schema/SchemasTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import java.util.Map;
import java.util.concurrent.TimeUnit;

import org.neo4j.configuration.GraphDatabaseInternalSettings;
import org.neo4j.configuration.GraphDatabaseSettings;
import org.neo4j.graphdb.Label;
import org.neo4j.graphdb.QueryExecutionException;
Expand Down Expand Up @@ -55,8 +54,7 @@ public class SchemasTest {
"RETURN * ORDER BY label, type";
@Rule
public DbmsRule db = new ImpermanentDbmsRule()
.withSetting(GraphDatabaseSettings.procedure_unrestricted, Collections.singletonList("apoc.*"))
.withSetting(GraphDatabaseInternalSettings.rel_unique_constraints, true);
.withSetting(GraphDatabaseSettings.procedure_unrestricted, Collections.singletonList("apoc.*"));

private static void accept(Result result) {
Map<String, Object> r = result.next();
Expand Down
1 change: 0 additions & 1 deletion test-utils/src/main/java/apoc/util/TestContainerUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ private static Neo4jContainerExtension createNeo4jContainer(List<ApocPackage> ap
.withNeo4jConfig("dbms.logs.http.enabled", "true")
.withNeo4jConfig("dbms.logs.debug.level", "DEBUG")
.withNeo4jConfig("dbms.routing.driver.logging.level", "DEBUG")
.withNeo4jConfig("internal.dbms.relationship_uniqueness_constraints", "true")
.withFileSystemBind(canonicalPath, "/var/lib/neo4j/import") // map the "target/import" dir as the Neo4j's import dir
.withCreateContainerCmdModifier(cmd -> cmd.withMemory(2024 * 1024 * 1024L)) // 2gb
.withExposedPorts(7687, 7473, 7474)
Expand Down

0 comments on commit 1bef681

Please sign in to comment.