OpenMRS Core Master

Build: #956 failed

Job: Build and Test failed

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Wait until task is executing should raise Atimeout exception when the timeout is exceeded: Test case result

The below summarizes the result of the test "Wait until task is executing should raise Atimeout exception when the timeout is exceeded" in build 956 of OpenMRS Core - OpenMRS Core Master - Build and Test. View test case history
Description
Wait until task is executing should raise Atimeout exception when the timeout is exceeded
Test class
org.openmrs.scheduler.web.controller.TaskHelperTest
Method
waitUntilTaskIsExecuting_shouldRaiseATimeoutExceptionWhenTheTimeoutIsExceeded
Duration
< 1 sec
Status
Failed (New Failure)

Error Log

java.lang.Exception: Unexpected exception, expected<java.util.concurrent.TimeoutException> but was<org.openmrs.api.APIAuthenticationException>
	at org.openmrs.aop.AuthorizationAdvice.throwUnauthorized(AuthorizationAdvice.java:117)
	at org.openmrs.aop.AuthorizationAdvice.before(AuthorizationAdvice.java:98)
	at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
	at com.sun.proxy.$Proxy96.getTaskByName(Unknown Source)
	at org.openmrs.scheduler.web.controller.TaskHelper.getTaskDefinition(TaskHelper.java:76)
	at org.openmrs.scheduler.web.controller.TaskHelper.getScheduledTaskDefinition(TaskHelper.java:60)
	at org.openmrs.scheduler.web.controller.TaskHelperTest.waitUntilTaskIsExecuting_shouldRaiseATimeoutExceptionWhenTheTimeoutIsExceeded(TaskHelperTest.java:107)