From 6a684edcb636a4b98755d9833fa31e79841df1fd Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Tue, 18 Jun 2024 13:58:56 -0400 Subject: [PATCH] test: fix the `[FINISHED]` escape --- crates/cargo-test-support/src/compare.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cargo-test-support/src/compare.rs b/crates/cargo-test-support/src/compare.rs index 919e33be460..22dadef53ef 100644 --- a/crates/cargo-test-support/src/compare.rs +++ b/crates/cargo-test-support/src/compare.rs @@ -149,7 +149,7 @@ fn add_common_redactions(subs: &mut snapbox::Redactions) { // For e2e tests subs.insert( "[ELAPSED]", - regex!(r"[FINISHED].*in (?[0-9]+(\.[0-9]+))s"), + regex!(r"\[FINISHED\].*in (?[0-9]+(\.[0-9]+))s"), ) .unwrap(); // for UI tests