diff --git a/src/utils/files.rs b/src/utils/files.rs index 6293c7b..515aaa1 100644 --- a/src/utils/files.rs +++ b/src/utils/files.rs @@ -159,22 +159,22 @@ mod files_unittests { use super::*; #[tokio::test] async fn try_to_create_watcher() { - let res = create_watcher("dep-file", "/home/user/monitor/runner-rs/tests/examples/").await; + let res = create_watcher("dep-file", "./tests/examples/").await; assert!(res.is_ok()); } #[tokio::test] async fn try_to_create_invalid_watcher() { - let res = create_watcher("invalid-file", "/path/to/the/hell").await; + let res = create_watcher("invalid-file", "/path/to/the/no/dir").await; assert!(res.is_err()); } #[tokio::test] async fn check_existing_file() { - let res = check_file("dep-file", "/home/user/monitor/runner-rs/tests/examples/").await; + let res = check_file("dep-file", "./tests/examples/").await; assert!(res.is_ok()); } #[tokio::test] async fn check_non_existing_file() { - let res = check_file("invalid-file", "/path/to/the/hell").await; + let res = check_file("invalid-file", "/path/to/the/no/dir").await; assert!(res.is_err()); } }