From 80fcaf3310c0aab39d802b32aaa1a4ad69689f6f Mon Sep 17 00:00:00 2001 From: Alix ANNERAUD Date: Thu, 20 Jun 2024 19:01:00 -0400 Subject: [PATCH] Fix unit test in Task --- Modules/Task/src/Task.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Task/src/Task.rs b/Modules/Task/src/Task.rs index 36622dc..f723d97 100644 --- a/Modules/Task/src/Task.rs +++ b/Modules/Task/src/Task.rs @@ -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();