Skip to content

Commit

Permalink
fixup! test: Add auto-redaction for not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
eth3lbert committed Jun 21, 2024
1 parent 328bc5f commit 62ae865
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/testsuite/config_include.rs
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -162,8 +162,7 @@ Caused by:
failed to read configuration file `[..]/.cargo/missing.toml`
Caused by:
{}",
no_such_file_err_msg()
[NOT_FOUND]",
),
);
}
Expand Down Expand Up @@ -270,8 +269,7 @@ Caused by:
failed to read configuration file `[..]/foobar.toml`
Caused by:
{}",
no_such_file_err_msg()
[NOT_FOUND]"
),
);
}
Expand Down

0 comments on commit 62ae865

Please sign in to comment.