From b0c6893a4cb2a076810a603a869de39d48ab4520 Mon Sep 17 00:00:00 2001 From: Satoshi Konno Date: Thu, 8 Aug 2024 08:20:26 +0900 Subject: [PATCH] Update tests::controller() --- src/controller_test.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controller_test.rs b/src/controller_test.rs index 1a69f0f5..545aa38d 100644 --- a/src/controller_test.rs +++ b/src/controller_test.rs @@ -15,6 +15,7 @@ #[cfg(test)] mod tests { + use std::{thread, time}; use crate::controller::*; use crate::log::Logger; @@ -22,10 +23,14 @@ mod tests { fn controller() { Logger::init(); { + let slp = time::Duration::from_secs(1); let mut ctrl = Controller::new(); assert!(ctrl.start()); + thread::sleep(slp); assert!(ctrl.search()); + thread::sleep(slp); assert!(ctrl.stop()); + thread::sleep(slp); } } }