From 62ae865d950a773f1202172c8c66e25bdf245749 Mon Sep 17 00:00:00 2001 From: eth3lbert Date: Sat, 22 Jun 2024 04:48:37 +0800 Subject: [PATCH] fixup! test: Add auto-redaction for not found error --- tests/testsuite/config_include.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/testsuite/config_include.rs b/tests/testsuite/config_include.rs index 8d6a0932a880..d8f1dab972b2 100644 --- a/tests/testsuite/config_include.rs +++ b/tests/testsuite/config_include.rs @@ -1,8 +1,8 @@ //! Tests for `include` config field. use super::config::{assert_error, write_config_at, write_config_toml, GlobalContextBuilder}; +use cargo_test_support::project; use cargo_test_support::str; -use cargo_test_support::{no_such_file_err_msg, project}; #[cargo_test] fn gated() { @@ -162,8 +162,7 @@ Caused by: failed to read configuration file `[..]/.cargo/missing.toml` Caused by: - {}", - no_such_file_err_msg() + [NOT_FOUND]", ), ); } @@ -270,8 +269,7 @@ Caused by: failed to read configuration file `[..]/foobar.toml` Caused by: - {}", - no_such_file_err_msg() + [NOT_FOUND]" ), ); }