Skip to content

Commit

Permalink
Logging for flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwilshire committed Oct 25, 2024
1 parent ec41231 commit c5260de
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public void testDeleteAllDynamicJobs() throws Exception {
});

getL10nJCommander().run("quartz-jobs-view");
assertTrue("Should show no jobs", outputCapture.toString().contains("None"));
String output = outputCapture.toString();
System.out.println("LOG : testDeleteAllDynamicJobs : quartz-jobs-view response : " + output);
assertTrue("Should show no jobs", output.contains("None"));
assertTrue(quartzService.getDynamicJobs().isEmpty());

String testJobName1 = testIdWatcher.getEntityName("1");
Expand All @@ -59,6 +61,11 @@ public void testDeleteAllDynamicJobs() throws Exception {
getL10nJCommander().run("quartz-jobs-view");
assertTrue("Should show 1 job", outputCapture.toString().contains("AJob_" + testJobName1));
assertTrue("Should show 1 job", outputCapture.toString().contains("AJob_" + testJobName2));

for (String dyanmicJob : quartzService.getDynamicJobs()) {
System.out.println("LOG : testDeleteAllDynamicJobs : " + dyanmicJob);
}

assertEquals(2L, quartzService.getDynamicJobs().size());

getL10nJCommander().run("quartz-jobs-delete");
Expand Down

0 comments on commit c5260de

Please sign in to comment.