Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DROOLS-751] - add reproducer for regression introduced by the fix #436

Closed
wants to merge 1 commit into from

Conversation

winklerm
Copy link
Contributor

Added reproducer for a regression introduced by adding the propagation queue.

The test succeeds when run against the code just before the commit 8b0ee2e. When the commit is applied, none of the two rules fires (both are expected to fire two times).

for (int i = 0; i < 3; i++) {
Event1 tc = new Event1("code"+i, i);
stream.insert(tc);
clock.advanceTime(8, TimeUnit.SECONDS);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you add
ksession.fireAllRules();
on line 5511 (it must be before the clock is advanced), the test passes.

Not sure if this is intended, though.

@mariofusco
Copy link
Contributor

We discussed this and think that this behavior is correct.

@mariofusco mariofusco closed this Jul 2, 2015
Rikkola pushed a commit to Rikkola/drools that referenced this pull request Jan 27, 2020
lucamolteni pushed a commit to lucamolteni/drools that referenced this pull request Oct 13, 2021
dupliaka pushed a commit to dupliaka/drools that referenced this pull request Apr 1, 2022
cimbalek pushed a commit to cimbalek/incubator-kie-drools that referenced this pull request Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants