From 814e745602d84760dc5e8ced237d57a6019ce2e1 Mon Sep 17 00:00:00 2001 From: Oleh Bohzok <6554798+olehbozhok@users.noreply.github.com> Date: Wed, 8 Jan 2025 17:58:12 +0200 Subject: [PATCH] chore(jans-cedarling): fix test case, rename key `kkk` to `key` to avoid misinterpreted Signed-off-by: Oleh Bohzok <6554798+olehbozhok@users.noreply.github.com> Signed-off-by: Oleh Bohzok Signed-off-by: Oleh Bohzok <6554798+olehbozhok@users.noreply.github.com> Signed-off-by: Oleh Bohzok --- jans-cedarling/sparkv/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jans-cedarling/sparkv/src/lib.rs b/jans-cedarling/sparkv/src/lib.rs index c1d405f7b2d..20dd1cda02f 100644 --- a/jans-cedarling/sparkv/src/lib.rs +++ b/jans-cedarling/sparkv/src/lib.rs @@ -234,14 +234,14 @@ mod tests { fn test_get_item_return_none_if_expired() { let mut sparkv = SparKV::new(); _ = sparkv.set_with_ttl( - "kkk", + "key", "value", Duration::new(0, 10000).expect("a valid duration"), ); - assert_eq!(sparkv.get("kkk"), Some(String::from("value"))); + assert_eq!(sparkv.get("key"), Some(String::from("value"))); std::thread::sleep(std::time::Duration::from_nanos(30000)); - assert_eq!(sparkv.get("kkk"), None); + assert_eq!(sparkv.get("key"), None); } #[test]