Skip to content

Commit 56cd603

Browse files
committed
added sleep to wait for grafana readiness1
1 parent ab21a9a commit 56cd603

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/ItMonitoringExporter.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -829,13 +829,7 @@ public void test19_EndToEndViaChart() throws Exception {
829829
if (operator1 != null) {
830830
operator1.destroy();
831831
}
832-
crdCmd =
833-
"cd "
834-
+ monitoringExporterEndToEndDir
835-
+ " && docker run --rm -v "
836-
+ monitoringExporterEndToEndDir
837-
+ "pvDir:/tt -v $PWD/util:/util nginx /util/clean-pv.sh";
838-
ExecCommand.exec(crdCmd);
832+
deletePvDir();
839833
}
840834
testCompletedSuccessfully = true;
841835
logger.info("SUCCESS - " + testMethodName);
@@ -1183,8 +1177,8 @@ private static void deletePvDir() throws Exception {
11831177
ExecCommand.exec(crdCmd);
11841178
StringBuffer removeDir = new StringBuffer();
11851179
logger.info("Cleaning PV dir " + pvDir);
1186-
11871180
removeDir.append("rm -rf ").append(pvDir).append(" && ");
1181+
ExecCommand.exec(removeDir.toString());
11881182
}
11891183

11901184
/**

0 commit comments

Comments
 (0)