From fa63fd4610fbe4a1d95c4da776e4a1cfa8f8e0b9 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 15 Jun 2023 13:09:37 -0400 Subject: refactor(flags): move watch flags into subcommand structs (#19516) Moves the watch setting out of the `Flags` struct and into the individual subcommands --- cli/tests/integration/watcher_tests.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/tests/integration/watcher_tests.rs') diff --git a/cli/tests/integration/watcher_tests.rs b/cli/tests/integration/watcher_tests.rs index e8f9ddc63..e844a2efe 100644 --- a/cli/tests/integration/watcher_tests.rs +++ b/cli/tests/integration/watcher_tests.rs @@ -385,6 +385,7 @@ async fn fmt_watch_test() { wait_contains("Checked", &mut stderr_lines).await, "Checked 1 file" ); + wait_contains("Fmt finished", &mut stderr_lines).await; let expected = std::fs::read_to_string(fixed.clone()).unwrap(); let actual = std::fs::read_to_string(badly_formatted.clone()).unwrap(); @@ -401,6 +402,7 @@ async fn fmt_watch_test() { wait_contains("Checked", &mut stderr_lines).await, "Checked 1 file" ); + wait_contains("Fmt finished", &mut stderr_lines).await; // Check if file has been automatically formatted by watcher let expected = std::fs::read_to_string(fixed).unwrap(); -- cgit v1.2.3