Skip to content

Commit

Permalink
Remove more kinds of cargo output related to blocking on file locks. (
Browse files Browse the repository at this point in the history
#1025)

Encountered a new `cargo` output line while streaming with @orhun:
>     Blocking waiting for file lock on build directory

Let's eliminate it from our snapshots, since it isn't relevant to what
we're testing.
  • Loading branch information
obi1kenobi authored Dec 7, 2024
1 parent 9b633c8 commit bcd001a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/snapshot_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ fn assert_integration_test(test_name: &str, invocation: &[&str]) {
settings.add_filter(&regex::escape(&repo_root.to_string_lossy()), "[ROOT]");
// Remove cargo blocking lines (e.g. from `cargo doc` output) as the amount of blocks
// is not reproducible.
settings.add_filter(" Blocking waiting for file lock on package cache\n", "");
settings.add_filter(" Blocking waiting for file lock on [^\n]+\n", "");
// Filter out the current `cargo-semver-checks` version in links to lint references,
// as this will break across version changes.
settings.add_filter(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_snapshots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ fn set_snapshot_filters(settings: &mut insta::Settings) {
settings.add_filter(&regex::escape(&repo_root.to_string_lossy()), "[ROOT]");
// Remove cargo blocking lines (e.g. from `cargo doc` output) as the amount of blocks
// is not reproducible.
settings.add_filter(" Blocking waiting for file lock on package cache\n", "");
settings.add_filter(" Blocking waiting for file lock on [^\n]+\n", "");
// Filter out the current `cargo-semver-checks` version in links to lint references,
// as this will break across version changes.
settings.add_filter(
Expand Down

0 comments on commit bcd001a

Please sign in to comment.