From d931770e90db750b89bce4eb0954b78bb092fe4c Mon Sep 17 00:00:00 2001 From: Maxime Van Hees Date: Tue, 9 Sep 2025 16:04:31 +0200 Subject: [PATCH] Fix test suite + update Cargo.toml file --- herodb/Cargo.toml | 4 ++-- herodb/tests/usage_suite.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/herodb/Cargo.toml b/herodb/Cargo.toml index b71eb22..a11a8c0 100644 --- a/herodb/Cargo.toml +++ b/herodb/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "herodb" version = "0.0.1" -authors = ["Pin Fang "] -edition = "2021" +authors = ["ThreeFold Tech"] +edition = "2024" [dependencies] anyhow = "1.0.59" diff --git a/herodb/tests/usage_suite.rs b/herodb/tests/usage_suite.rs index a330a0b..c6f5b38 100644 --- a/herodb/tests/usage_suite.rs +++ b/herodb/tests/usage_suite.rs @@ -500,11 +500,11 @@ async fn test_07_age_stateless_suite() { let mut s = connect(port).await; // GENENC -> [recipient, identity] - let gen = send_cmd(&mut s, &["AGE", "GENENC"]).await; + let gen_result = send_cmd(&mut s, &["AGE", "GENENC"]).await; assert!( - gen.starts_with("*2\r\n$"), + gen_result.starts_with("*2\r\n$"), "AGE GENENC should return array [recipient, identity], got:\n{}", - gen + gen_result ); // Parse simple RESP array of two bulk strings to extract keys @@ -519,7 +519,7 @@ async fn test_07_age_stateless_suite() { let ident = lines.next().unwrap_or("").to_string(); (recip, ident) } - let (recipient, identity) = parse_two_bulk_array(&gen); + let (recipient, identity) = parse_two_bulk_array(&gen_result); assert!( recipient.starts_with("age1") && identity.starts_with("AGE-SECRET-KEY-1"), "Unexpected AGE key formats.\nrecipient: {}\nidentity: {}",