Skip to content

Commit

Permalink
Update tests::controller()
Browse files Browse the repository at this point in the history
  • Loading branch information
cybergarage committed Aug 7, 2024
1 parent 36977a5 commit b0c6893
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/controller_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,22 @@
#[cfg(test)]
mod tests {

use std::{thread, time};
use crate::controller::*;
use crate::log::Logger;

#[test]
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);
}
}
}

0 comments on commit b0c6893

Please sign in to comment.