diff --git a/pom.xml b/pom.xml
index 8c8cb4eb..bf6660f8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,6 +86,7 @@
maven-failsafe-plugin
${version.maven-failsafe-plugin}
+ ${project.basedir}/src/main/resources
${liberty.var.default.http.port}
${liberty.var.default.https.port}
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 8525b2bf..c53ca355 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 = System.getProperty("user.dir").split("target")[0] + "/resources/CustomConfigSource.json";
+ String fileName = "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(600);
+ Thread.sleep(1500);
} catch (Exception e) {
e.printStackTrace();
}