summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-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