Skip to content

Commit dce59d8

Browse files
committed
Change CustomConfigSource path for test
1 parent 7f4cead commit dce59d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/it/io/openliberty/sample/health/HealthUtilIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static String getActualState(String service, JsonArray servicesstatus) {
6464

6565
public static void changeProperty(String oldValue, String newValue) {
6666
try {
67-
String fileName = "META-INF/CustomConfigSource.json";
67+
String fileName = System.getProperty("user.dir").split("src")[0] + "/target/classes/META-INF/CustomConfigSource.json";
6868
BufferedReader reader = new BufferedReader(new FileReader(new File(fileName)));
6969
String line = "";
7070
String oldContent = "", newContent = "";
@@ -76,7 +76,7 @@ public static void changeProperty(String oldValue, String newValue) {
7676
FileWriter writer = new FileWriter(fileName);
7777
writer.write(newContent);
7878
writer.close();
79-
Thread.sleep(1500);
79+
Thread.sleep(3500);
8080
} catch (Exception e) {
8181
e.printStackTrace();
8282
}

0 commit comments

Comments
 (0)