Skip to content

Commit

Permalink
Merge pull request #448 from irham0019/2.x
Browse files Browse the repository at this point in the history
Fixing the test case
  • Loading branch information
irham0019 authored Mar 2, 2018
2 parents 0824add + 9b6df8f commit 1e308e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void testAbnormalBackendTimeEmailAlert() throws Exception {
boolean abnormalBackendTimeEmailAlertTriggered = isAlertReceived(0, "Unique ID: logger_emailAlert", 20 ,10000);
Assert.assertTrue(abnormalBackendTimeEmailAlertTriggered, "Abnormal backend time email alert event not received!");

// logViewerClient.clearLogs();
logViewerClient.clearLogs();
eventDto.setEventStreamId(getStreamId(ABNORMAL_BACKEND_TIME_STREAM_NAME, STREAM_VERSION));
eventDto.setAttributeValues(
new String[]{"CalculatorAPI:v2.0", "[email protected]", "carbon.super", "/add", "GET", "65", "20.52214676764896",
Expand All @@ -120,7 +120,7 @@ public void testAbnormalBackendTimeEmailAlert() throws Exception {
}
);
publishEvent(eventDto);
abnormalBackendTimeEmailAlertTriggered = isAlertReceived(0, "Unique ID: logger_emailAlert", 20 ,10000);
abnormalBackendTimeEmailAlertTriggered = isAlertReceived(0, "Unique ID: logger_emailAlert", 20 ,1000);
Assert.assertFalse(abnormalBackendTimeEmailAlertTriggered, "Abnormal backend time email alert event received!");
}

Expand Down

0 comments on commit 1e308e5

Please sign in to comment.