Skip to content

Commit

Permalink
tests(prost-build): Fix error texts (#1156)
Browse files Browse the repository at this point in the history
Due to conflicting PR #1152 and #1150 tests were failing.
  • Loading branch information
caspermeijn authored Sep 13, 2024
1 parent 7dcd269 commit 9fa3f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prost-build/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ mod tests {
config.protoc_executable("src/lib.rs");

let err = config.load_fds(&[""], &[""]).unwrap_err();
assert_starts_with!(err.to_string(), "failed to invoke protoc (hint: https://docs.rs/prost-build/#sourcing-protoc): (path: \"src/lib.rs\"): ")
assert_starts_with!(err.to_string(), "failed to invoke protoc (hint: https://docs.rs/prost-build/#sourcing-protoc): (path: src/lib.rs): ")
}

#[test]
Expand Down Expand Up @@ -1319,7 +1319,7 @@ mod tests {
let err = config.load_fds(&[""], &[""]).unwrap_err();
assert_starts_with!(
err.to_string(),
"unable to open file_descriptor_set_path: \"path-does-not-exist\", OS: "
"unable to open file_descriptor_set_path: path-does-not-exist, OS: "
)
}

Expand Down

0 comments on commit 9fa3f2e

Please sign in to comment.