Skip to content

Commit

Permalink
test: error message contents
Browse files Browse the repository at this point in the history
  • Loading branch information
de-sh committed Jun 13, 2024
1 parent 0f15ecd commit fa6ff49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uplink/src/collector/script_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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\\\": \\\"...\\\"}\""]);
}
}

0 comments on commit fa6ff49

Please sign in to comment.