-
Notifications
You must be signed in to change notification settings - Fork 73
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
Emit TaskCompleted event when a Fixed task is completed #385
Conversation
57895ed
to
7c05ccf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay LGTM. The dev code is rather simple, and the newly added test coverage looks good.
let my_events = events(); | ||
|
||
let event = my_events.into_iter().find(|e| { | ||
matches!(e, RuntimeEvent::AutomationTime(crate::Event::TaskCompleted { .. })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we also assert the TaskId was right as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the TaskCompleted
test, there is only one task, and we do not need to concern ourselves with the task_id
parameter.
No description provided.