From 9fa3f2e5cb6d1d1967644b22cdeecf160410ad41 Mon Sep 17 00:00:00 2001 From: Casper Meijn Date: Fri, 13 Sep 2024 08:18:37 +0200 Subject: [PATCH] tests(prost-build): Fix error texts (#1156) Due to conflicting PR #1152 and #1150 tests were failing. --- prost-build/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prost-build/src/config.rs b/prost-build/src/config.rs index 48675a316..965d79c7b 100644 --- a/prost-build/src/config.rs +++ b/prost-build/src/config.rs @@ -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] @@ -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: " ) }