From eec3c5fdb7f40bad96bdf1f837f8fd01fd236001 Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Wed, 5 Jul 2023 14:14:26 -0400 Subject: [PATCH] Fixed unit tests --- src/block_timestamp.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/block_timestamp.rs b/src/block_timestamp.rs index 0eff7a7..eba9479 100644 --- a/src/block_timestamp.rs +++ b/src/block_timestamp.rs @@ -184,13 +184,8 @@ mod tests { #[test] fn it_block_timestamp_try_from_key() { assert_eq!( - BlockTimestamp::from_key("1435708800000"), - timestamp(2015, 07, 01, 00, 00, 00, 000) - ); - - assert_eq!( - BlockTimestamp::from_key("1669852799999"), - timestamp(2022, 11, 30, 23, 59, 59, 999) + BlockTimestamp::from_key("day:first:20210705"), + timestamp(2021, 07, 05, 00, 00, 00, 000) ); }