Skip to content

Commit

Permalink
[DBjU6j7r] Clean up deprecated settings (neo4j#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
gem-neo4j authored May 17, 2024
1 parent a3b7893 commit af7c5ae
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
4 changes: 0 additions & 4 deletions core/src/test/java/apoc/export/BigGraphTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import static apoc.ApocConfig.APOC_IMPORT_FILE_ENABLED;
import static apoc.ApocConfig.apocConfig;
import static apoc.util.TransactionTestUtil.checkTerminationGuard;
import static org.neo4j.configuration.GraphDatabaseSettings.TransactionStateMemoryAllocation.OFF_HEAP;
import static org.neo4j.configuration.SettingValueParsers.BYTES;

import apoc.export.csv.ExportCSV;
import apoc.export.csv.ImportCsv;
Expand Down Expand Up @@ -61,8 +59,6 @@ public class BigGraphTest {
@ClassRule
public static DbmsRule db = new ImpermanentDbmsRule()
.withSetting(GraphDatabaseSettings.memory_tracking, true)
.withSetting(GraphDatabaseSettings.tx_state_memory_allocation, OFF_HEAP)
.withSetting(GraphDatabaseSettings.tx_state_max_off_heap_memory, BYTES.parse("1G"))
.withSetting(
GraphDatabaseSettings.load_csv_file_url_root,
directory.toPath().toAbsolutePath());
Expand Down
4 changes: 0 additions & 4 deletions core/src/test/java/apoc/export/csv/ImportCsvTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.neo4j.configuration.GraphDatabaseSettings.TransactionStateMemoryAllocation.OFF_HEAP;
import static org.neo4j.configuration.SettingValueParsers.BYTES;

import apoc.csv.CsvTestUtil;
import apoc.util.CompressionAlgo;
Expand Down Expand Up @@ -81,8 +79,6 @@ public class ImportCsvTest {
public DbmsRule db = new ImpermanentDbmsRule()
.withSetting(GraphDatabaseSettings.allow_file_urls, true)
.withSetting(GraphDatabaseSettings.db_temporal_timezone, DEFAULT_TIMEZONE)
.withSetting(GraphDatabaseSettings.tx_state_max_off_heap_memory, BYTES.parse("500m"))
.withSetting(GraphDatabaseSettings.tx_state_memory_allocation, OFF_HEAP)
.withSetting(GraphDatabaseSettings.memory_tracking, true)
.withSetting(
GraphDatabaseSettings.load_csv_file_url_root,
Expand Down
4 changes: 0 additions & 4 deletions core/src/test/java/apoc/export/graphml/ExportGraphMLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.neo4j.configuration.GraphDatabaseSettings.TransactionStateMemoryAllocation.OFF_HEAP;
import static org.neo4j.configuration.SettingValueParsers.BYTES;
import static org.neo4j.graphdb.Label.label;

import apoc.util.BinaryTestUtil;
Expand Down Expand Up @@ -95,8 +93,6 @@ public class ExportGraphMLTest {
@Rule
public DbmsRule db = new ImpermanentDbmsRule()
.withSetting(GraphDatabaseSettings.memory_tracking, true)
.withSetting(GraphDatabaseSettings.tx_state_memory_allocation, OFF_HEAP)
.withSetting(GraphDatabaseSettings.tx_state_max_off_heap_memory, BYTES.parse("200m"))
.withSetting(
GraphDatabaseSettings.load_csv_file_url_root,
directory.toPath().toAbsolutePath());
Expand Down
7 changes: 1 addition & 6 deletions core/src/test/java/apoc/load/LoadJsonTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
import static org.mockserver.matchers.Times.exactly;
import static org.mockserver.model.HttpRequest.request;
import static org.mockserver.model.HttpResponse.response;
import static org.neo4j.configuration.GraphDatabaseSettings.TransactionStateMemoryAllocation.OFF_HEAP;
import static org.neo4j.configuration.SettingValueParsers.BYTES;

import apoc.util.CompressionAlgo;
import apoc.util.JsonUtil;
Expand Down Expand Up @@ -82,10 +80,7 @@ public static void stopServer() {
}

@Rule
public DbmsRule db = new ImpermanentDbmsRule()
.withSetting(GraphDatabaseSettings.memory_tracking, true)
.withSetting(GraphDatabaseSettings.tx_state_memory_allocation, OFF_HEAP)
.withSetting(GraphDatabaseSettings.tx_state_max_off_heap_memory, BYTES.parse("1G"));
public DbmsRule db = new ImpermanentDbmsRule().withSetting(GraphDatabaseSettings.memory_tracking, true);

@Before
public void setUp() throws IOException {
Expand Down

0 comments on commit af7c5ae

Please sign in to comment.