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

Add the microstep only when the actions are scheduled at the current tag #135

Merged
merged 4 commits into from
Feb 25, 2023

Conversation

byeonggiljun
Copy link
Collaborator

For example, when action A is scheduled by actions.a.schedule(TimeValue.sec(1), null) at the tag (1 sec, 0), it is scheduled at the tag (2 sec, 1).
reactor-ts/src/core/action.ts/#L97 is the reason of that.

We have to increment the microstep only when we try to schedule an action at the current tag.

Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

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

👍

@lhstrh lhstrh self-requested a review February 17, 2023 01:49
@lhstrh
Copy link
Member

lhstrh commented Feb 17, 2023

Looks good, but I'm surprised to see the unit tests failing...

@byeonggiljun
Copy link
Collaborator Author

Looks good, but I'm surprised to see the unit tests failing...

Yeah right... I have to debug.

@lhstrh
Copy link
Member

lhstrh commented Feb 17, 2023

Looks like the test might be wrong? At least we have better coverage than I thought :-)

@byeonggiljun
Copy link
Collaborator Author

Yeah it's good for reactor-ts :). I think that else if statement cannot prevent the schedule at the exact current tag. I'm not sure though...

@lhstrh lhstrh merged commit be7b4f1 into master Feb 25, 2023
@lhstrh lhstrh deleted the schedule-properly branch February 25, 2023 07:50
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.

3 participants