From 955faa197595196973d2abe0f69d79f5d080bfde Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 9 Jul 2024 15:38:44 -0500 Subject: [PATCH] test(progress): Resolve flakiness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a follow up to #14181 which broke CI in #14221 ``` ---- progress::always_shows_progress stdout ---- running `/Users/runner/work/cargo/cargo/target/debug/cargo check` thread 'progress::always_shows_progress' panicked at tests/testsuite/progress.rs:128:10: ---- expected: tests/testsuite/progress.rs:116:13 ++++ actual: stderr 1 1 | [DOWNLOADING] 1 crate 2 2 | [DOWNLOADING] 2 crates 3 3 | [DOWNLOADING] 3 crates 4 4 | [DOWNLOADED] 3 crates ([..]KB) in [..]s 5 - [BUILDING] [..] 0/4: [..] 6 5 | [BUILDING] [..] 3/4: foo 7 6 | [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s 8 7 | ...∅ Update with SNAPSHOTS=overwrite ``` --- tests/testsuite/progress.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/testsuite/progress.rs b/tests/testsuite/progress.rs index cfc85eb0a50..f18199c133a 100644 --- a/tests/testsuite/progress.rs +++ b/tests/testsuite/progress.rs @@ -114,12 +114,9 @@ fn always_shows_progress() { p.cargo("check") .with_stderr_data( str![[r#" -[DOWNLOADING] 1 crate -[DOWNLOADING] 2 crates -[DOWNLOADING] 3 crates +[DOWNLOADING] [..] crate [DOWNLOADED] 3 crates ([..]KB) in [..]s -[BUILDING] [..] 0/4: [..] -[BUILDING] [..] 3/4: foo +[BUILDING] [..] [..]/4: [..] [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s ... "#]]