Skip to content

Commit

Permalink
fix build for delete detector api (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: Subhobrata Dey <sbcd90@gmail.com>
  • Loading branch information
sbcd90 committed Nov 1, 2022
1 parent 6f7468b commit 65395db
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,7 @@ public void testDeletingADetector() throws IOException {

Assert.assertFalse(alertingMonitorExists(monitorId));

// todo: change to assertFalse when alerting bug is fixed. https://github.com/opensearch-project/alerting/issues/581
Assert.assertTrue(doesIndexExist(String.format(Locale.getDefault(), ".opensearch-sap-detectors-queries-%s", "windows")));
Assert.assertFalse(doesIndexExist(String.format(Locale.getDefault(), ".opensearch-sap-detectors-queries-%s", "windows")));

hits = executeSearch(Detector.DETECTORS_INDEX, request);
Assert.assertEquals(0, hits.size());
Expand Down

0 comments on commit 65395db

Please sign in to comment.