IT failures in scheduler module

7 views
Skip to first unread message

Naveen Chandravanshi

unread,
Jan 13, 2015, 9:56:19 AM1/13/15
to motech-dev
Hi

I took the latest code of platform (https://code.google.com/p/motech/)
While running the integration tests these tests from scheduler module failed.

 SchedulerBundleIT.testRunOnceJob:69 expected:<1> but was:<0>
  MotechSchedulerServiceImplBundleIT.shouldNotIgnoreFiresInPastWhenSchedulingCronJob

Here is the stack trace:


2015-01-13 20:17:28,382 ERROR [org.motechproject.scheduler.service.impl.MotechSchedulerServiceImpl] Job start date cannot be null
Tests run: 31, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 104.601 sec <<< FAILURE! - in org.motechproject.scheduler.it.SchedulerIntegrationTests
testRunOnceJob(org.motechproject.scheduler.it.SchedulerBundleIT)  Time elapsed: 51.165 sec  <<< FAILURE!
java.lang.AssertionError: expected:<1> but was:<0>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.motechproject.scheduler.it.SchedulerBundleIT.testRunOnceJob(SchedulerBundleIT.java:69)

shouldNotIgnoreFiresInPastWhenSchedulingCronJob(org.motechproject.scheduler.it.MotechSchedulerServiceImplBundleIT)  Time elapsed: 26.553 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Listener didn't receive misfired events.
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.assertTrue(Assert.java:22)
at org.motechproject.scheduler.it.MotechSchedulerServiceImplBundleIT.shouldNotIgnoreFiresInPastWhenSchedulingCronJob(MotechSchedulerServiceImplBundleIT.java:164)
 

Regards
Naveen




Sebastian Brudziński

unread,
Jan 13, 2015, 12:26:19 PM1/13/15
to motec...@googlegroups.com
Hi.

It sounds like a problem with some local configuration. We use Continuous Integration to verify the tests pass, and as I see, there's no problem with them at the moment: http://ci.motechproject.org/job/Platform-IntegrationTests/

From the stacktrace you have provided, it seems there's a problem with receiving/sending events. Make sure that an instance of activemq is running and has been configured properly. Take a look here: http://docs.motechproject.org/en/latest/development/dev_setup/dev_install.html especially, at the note that mentions activemq.xml config and schedulerSupport parameter.

Best regards,
Sebastian Brudziński.
--
You received this message because you are subscribed to the Google Groups "MOTECH Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to motech-dev+...@googlegroups.com.
To post to this group, send email to motec...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/motech-dev/1903940496.255576.1421160977044.JavaMail.yahoo%40jws100157.mail.ne1.yahoo.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages