Skip to content

Commit ab21a9a

Browse files
committed
added sleep to wait for grafana readiness
1 parent 7355833 commit ab21a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,8 @@ public void test19_EndToEndViaChart() throws Exception {
819819
createWLSImageAndDeploy();
820820
installPrometheusGrafanaViaChart();
821821
} finally {
822-
823-
uninstallMySQL();
824822
uninstallPrometheusGrafanaViaChart();
823+
uninstallMySQL();
825824
String crdCmd =
826825
" kubectl delete -f " + monitoringExporterEndToEndDir + "/demo-domains/domain1.yaml";
827826
ExecCommand.exec(crdCmd);
@@ -1118,6 +1117,7 @@ private static void installPrometheusGrafanaViaChart() throws Exception {
11181117
+ " -X POST http://admin:12345678@$HOSTNAME:31000/api/dashboards/db/"
11191118
+ " --data-binary @grafana/dashboard.json";
11201119
TestUtils.exec(crdCmd);
1120+
Thread.sleep(15000);
11211121
assertTrue(checkMetricsViaPrometheus("wls_servlet_execution_time_average", "test-webapp"));
11221122
}
11231123

0 commit comments

Comments
 (0)