summaryrefslogtreecommitdiff
path: root/cli/tests/integration/test_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-07-18 13:20:15 -0400
committerGitHub <noreply@github.com>2022-07-18 13:20:15 -0400
commit0d73eb3dd91b5b34bb6c38a25a4e6aac411d38f3 (patch)
tree4863de509369734a789b04ac8e57f3ae386840f6 /cli/tests/integration/test_tests.rs
parent89c1ad030373c8317faab66c46ba279aca59a767 (diff)
chore: fix flaky captured_output (#15234)
Diffstat (limited to 'cli/tests/integration/test_tests.rs')
-rw-r--r--cli/tests/integration/test_tests.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs
index e1c7700db..8e7df2dfb 100644
--- a/cli/tests/integration/test_tests.rs
+++ b/cli/tests/integration/test_tests.rs
@@ -351,7 +351,12 @@ fn captured_output() {
let output_text = String::from_utf8(output.stdout).unwrap();
let start = output_text.find(output_start).unwrap() + output_start.len();
let end = output_text.find(output_end).unwrap();
- let output_text = output_text[start..end].trim();
+ // replace zero width space that may appear in test output due
+ // to test runner output flusher
+ let output_text = output_text[start..end]
+ .replace('\u{200B}', "")
+ .trim()
+ .to_string();
let mut lines = output_text.lines().collect::<Vec<_>>();
// the output is racy on either stdout or stderr being flushed
// from the runtime into the rust code, so sort it... the main