summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs')
-rw-r--r--crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs b/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs
index 2f91a329..7a76df52 100644
--- a/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs
+++ b/crates/core/tedge_mapper/src/sm_c8y_mapper/mapper.rs
@@ -618,7 +618,7 @@ mod tests {
#[test_case("/path/to/another-variant-2021-10-25T07:45:41Z.log")]
#[test_case("/yet-another-variant-2021-10-25T07:45:41Z.log")]
fn test_datetime_parsing_from_path(file_path: &str) {
- // checking that `get_date_from_file_path` unwraps a `chrono::NaiveDateTime` object.
+ // checking that `get_date_from_file_path` unwraps a `OffsetDateTime` object.
// this should return an Ok Result.
let path_buf = PathBuf::from_str(file_path).unwrap();
let path_buf_datetime = get_datetime_from_file_path(&path_buf);
@@ -630,7 +630,7 @@ mod tests {
#[test_case("/path/to/another-variant-07:45:41Z-2021-10-25T.log")]
#[test_case("/yet-another-variant-2021-10-25T07:45Z.log")]
fn test_datetime_parsing_from_path_fail(file_path: &str) {
- // checking that `get_date_from_file_path` unwraps a `chrono::NaiveDateTime` object.
+ // checking that `get_date_from_file_path` unwraps a `OffsetDateTime` object.
// this should return an err.
let path_buf = PathBuf::from_str(file_path).unwrap();
let path_buf_datetime = get_datetime_from_file_path(&path_buf);