add new testNumberOfJobs() to SchedulerJobsTest (re. FINERACT-922)
This would catch problems such as the integration tests running "too early" (before Flyway has fully initialized the database), which I have a suspicion could be one of (many) causes of the unstable scheduler tests, notably because of the IllegalArgumentException at SchedulerJobsTest.java:90 in https://github.com/apache/fineract/pull/817
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
904da67bbd
commit
7a98ad8d07
+6
@@ -97,6 +97,12 @@ public class SchedulerJobsTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNumberOfJobs() {
|
||||
List<Integer> jobIds = schedulerJobHelper.getAllSchedulerJobIds();
|
||||
assertEquals("Number of jobs in database and code do not match: " + jobIds, JobName.values().length, jobIds.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFlippingJobsActiveStatus() throws InterruptedException {
|
||||
// Stop the Scheduler while we test flapping jobs' active on/off, to avoid side
|
||||
|
||||
Reference in New Issue
Block a user