Skip to content

Commit

Permalink
ODP-1644: Increased timeouts/sleeps to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySmith committed Jul 15, 2024
1 parent ea08ed0 commit 05e7832
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,11 @@ void testSchedule() throws InterruptedException, IOException {
});
schedulerService.refreshCron(noteId);
// wait a little until running processes are finished
Thread.sleep(3 * 1000);
Thread.sleep(5*1000);
Date dateFinished = paragraph.getDateFinished();
assertNotNull(dateFinished);
// wait a little bit to check that no other tasks are being executed
Thread.sleep(2 * 1000);
Thread.sleep(3 * 1000);
assertEquals(dateFinished, paragraph.getDateFinished());
notebook.removeNote(noteId, anonymous);
}
Expand Down Expand Up @@ -716,7 +716,7 @@ void testScheduleAgainstRunningAndPendingParagraph() throws InterruptedException

@Test
void testSchedulePoolUsage() throws InterruptedException, IOException {
final int timeout = 30;
final int timeout = 60;
final String everySecondCron = "* * * * * ?";
// each run starts a new JVM and the job takes about ~5 seconds
final CountDownLatch jobsToExecuteCount = new CountDownLatch(5);
Expand Down Expand Up @@ -781,7 +781,7 @@ public void onStatusChanged(Job<?> job, Status before, Status after) {
void testScheduleDisabledWithName() throws InterruptedException, IOException {

conf.setProperty(ConfVars.ZEPPELIN_NOTEBOOK_CRON_FOLDERS.getVarName(), "/System");
final int timeout = 30;
final int timeout = 60;
final String everySecondCron = "* * * * * ?";
// each run starts a new JVM and the job takes about ~5 seconds
final CountDownLatch jobsToExecuteCount = new CountDownLatch(5);
Expand Down

0 comments on commit 05e7832

Please sign in to comment.