From 150bb87a413e6052c0e8286d0090ba96d26bbd47 Mon Sep 17 00:00:00 2001 From: prplV Date: Tue, 26 Nov 2024 17:40:11 +0300 Subject: [PATCH] files unit tests fix --- src/utils/files.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()); } }