update variable name as 'gen' is a reserved keyword since Rust 2024 edition
This commit is contained in:
		| @@ -501,11 +501,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 genenc = send_cmd(&mut s, &["AGE", "GENENC"]).await; | ||||
|     assert!( | ||||
|         gen.starts_with("*2\r\n$"), | ||||
|         genenc.starts_with("*2\r\n$"), | ||||
|         "AGE GENENC should return array [recipient, identity], got:\n{}", | ||||
|         gen | ||||
|         genenc | ||||
|     ); | ||||
|  | ||||
|     // Parse simple RESP array of two bulk strings to extract keys | ||||
| @@ -520,7 +520,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(&genenc); | ||||
|     assert!( | ||||
|         recipient.starts_with("age1") && identity.starts_with("AGE-SECRET-KEY-1"), | ||||
|         "Unexpected AGE key formats.\nrecipient: {}\nidentity: {}", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user