Skip to content

Commit

Permalink
Fix unit test in Task
Browse files Browse the repository at this point in the history
  • Loading branch information
AlixANNERAUD committed Jun 20, 2024
1 parent 0f93d06 commit 80fcaf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Task/src/Task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ mod tests {

let Manager_copy = Manager.clone();

let _ = Manager.New_root_task(None, move || {
Manager.New_root_task(None, move || {
let Task = Task_type::Get_current_task(&Manager_copy).unwrap();

let _ = Task
.New_child_task("Child task", None, || {
.New_child_task("Child task", None, None, || {
Task_type::Sleep(std::time::Duration::from_millis(100));
})
.unwrap();
Expand Down

0 comments on commit 80fcaf3

Please sign in to comment.