From fa6ff491984881e28589f23433f5a7d91fe9dbf6 Mon Sep 17 00:00:00 2001 From: Devdutt Shenoi Date: Thu, 13 Jun 2024 21:32:31 +0530 Subject: [PATCH] test: error message contents --- uplink/src/collector/script_runner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uplink/src/collector/script_runner.rs b/uplink/src/collector/script_runner.rs index 5787edfe..b5b9fd6c 100644 --- a/uplink/src/collector/script_runner.rs +++ b/uplink/src/collector/script_runner.rs @@ -180,7 +180,7 @@ mod tests { let ActionResponse { state, errors, .. } = status_rx.recv().unwrap(); assert_eq!(state, "Failed"); - assert_eq!(errors, ["Failed to deserialize action payload: \"EOF while parsing a value at line 1 column 0\"; payload: \"\""]); + assert_eq!(errors, ["Failed to deserialize action payload: EOF while parsing a value at line 1 column 0; payload: \"\""]); } #[test] @@ -203,6 +203,6 @@ mod tests { let ActionResponse { state, errors, .. } = status_rx.recv().unwrap(); assert_eq!(state, "Failed"); - assert_eq!(errors, ["Action payload doesn't contain path for script execution; payload: \"{\"url\": \"...\", \"content_length\": 0,\"file_name\": \"...\"}\""]); + assert_eq!(errors, ["Action payload doesn't contain path for script execution; payload: \"{\\\"url\\\": \\\"...\\\", \\\"content_length\\\": 0,\\\"file_name\\\": \\\"...\\\"}\""]); } }