diff --git a/src/test/java/it/io/openliberty/sample/health/HealthUtilIT.java b/src/test/java/it/io/openliberty/sample/health/HealthUtilIT.java index c53ca355..e103e7f1 100644 --- a/src/test/java/it/io/openliberty/sample/health/HealthUtilIT.java +++ b/src/test/java/it/io/openliberty/sample/health/HealthUtilIT.java @@ -64,7 +64,7 @@ public static String getActualState(String service, JsonArray servicesstatus) { public static void changeProperty(String oldValue, String newValue) { try { - String fileName = "META-INF/CustomConfigSource.json"; + String fileName = System.getProperty("user.dir").split("src")[0] + "/target/classes/META-INF/CustomConfigSource.json"; BufferedReader reader = new BufferedReader(new FileReader(new File(fileName))); String line = ""; String oldContent = "", newContent = ""; @@ -76,7 +76,7 @@ public static void changeProperty(String oldValue, String newValue) { FileWriter writer = new FileWriter(fileName); writer.write(newContent); writer.close(); - Thread.sleep(1500); + Thread.sleep(3500); } catch (Exception e) { e.printStackTrace(); }