[jboss-jira] [JBoss JIRA] (DROOLS-948) testEventWithShortExpiration() in CepEspTest and CepJavaTypeTest fails
Tibor Zimányi (JIRA)
issues at jboss.org
Wed Oct 14 04:01:01 EDT 2015
[ https://issues.jboss.org/browse/DROOLS-948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tibor Zimányi updated DROOLS-948:
---------------------------------
Description:
Last assert in testEventWithShortExpiration() sometimes fails because sometimes the event don't have time to expire (although there is 1ms expiration defined) after fireAllRules is called in the test before the assert. There should be some sleep time added before the assert.
The fail is nondeterministic and this nondeterminism is because 1ms expire time can be longer because of jvm scheduler. Issue can be reproduced by running the test in a for loop with e.g. 1000 iterations.
was:Last assert in testEventWithShortExpiration() fails because sometimes the event don't have time to expire (although there is 1ms expiration defined) after fireAllRules is called in the test before the assert. There should be some sleep time added before the assert.
> testEventWithShortExpiration() in CepEspTest and CepJavaTypeTest fails
> ----------------------------------------------------------------------
>
> Key: DROOLS-948
> URL: https://issues.jboss.org/browse/DROOLS-948
> Project: Drools
> Issue Type: Bug
> Reporter: Tibor Zimányi
> Assignee: Mark Proctor
> Priority: Minor
>
> Last assert in testEventWithShortExpiration() sometimes fails because sometimes the event don't have time to expire (although there is 1ms expiration defined) after fireAllRules is called in the test before the assert. There should be some sleep time added before the assert.
> The fail is nondeterministic and this nondeterminism is because 1ms expire time can be longer because of jvm scheduler. Issue can be reproduced by running the test in a for loop with e.g. 1000 iterations.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list