From 7986a74615a6a9ad6e2b8c7efbcb219229554dd1 Mon Sep 17 00:00:00 2001 From: Jenny Date: Wed, 9 Jun 2021 13:55:59 +0200 Subject: [PATCH] fixed conf test failure in 4.3+ --- src/test/java/com/neo4j/docker/TestConfSettings.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/neo4j/docker/TestConfSettings.java b/src/test/java/com/neo4j/docker/TestConfSettings.java index d15a65fe..e3d0eaec 100644 --- a/src/test/java/com/neo4j/docker/TestConfSettings.java +++ b/src/test/java/com/neo4j/docker/TestConfSettings.java @@ -67,7 +67,7 @@ private void assertConfigurationPresentInDebugLog( Path debugLog, String setting if(shouldBeFound) { Assertions.assertTrue( !actualSetting.isEmpty(), setting+" was never set" ); - Assertions.assertTrue( actualSetting.endsWith( value ), + Assertions.assertTrue( actualSetting.contains( value ), setting +" is set to the wrong value. Expected: "+value+" Actual: " + actualSetting ); } else @@ -184,7 +184,7 @@ void testReadsTheConfFile() throws Exception } //Check if the container reads the conf file - assertConfigurationPresentInDebugLog( debugLog, "dbms.memory.heap.max_size", "512m", true ); + assertConfigurationPresentInDebugLog( debugLog, "dbms.memory.heap.max_size", "512", true ); } @Test