summaryrefslogtreecommitdiff
path: root/test_util/src/lib.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-05-10 16:24:37 -0400
committerGitHub <noreply@github.com>2022-05-10 16:24:37 -0400
commitabf72c5b375205b1d7d3565c7660ef70e464c45d (patch)
tree0436c2c218f0b62833eb847a049cbb943c6797a1 /test_util/src/lib.rs
parent11c13fb9819a479a5a69278fff3703cf893d3df1 (diff)
chore: fix flaky steps_output_within - part 2 (#14562)
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r--test_util/src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs
index 59a777d40..0eea21b04 100644
--- a/test_util/src/lib.rs
+++ b/test_util/src/lib.rs
@@ -1819,6 +1819,13 @@ impl<'a> CheckOutputIntegrationTest<'a> {
actual = strip_ansi_codes(&actual).to_string();
+ // deno test's output capturing flushes with a zero-width space in order to
+ // synchronize the output pipes. Occassionally this zero width space
+ // might end up in the output so strip it from the output comparison here.
+ if args.get(0) == Some(&"test") {
+ actual = actual.replace('\u{200B}', "");
+ }
+
let expected = if let Some(s) = self.output_str {
s.to_owned()
} else {