From f07f246ae8a158e33e81aa4ccf225cd536795f50 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 26 Apr 2022 09:53:22 -0400 Subject: [PATCH] chore: fix pty_complete_imports test (#14400) --- cli/tests/integration/repl_tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index 0fca594733..44036795f5 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -163,7 +163,11 @@ fn pty_complete_imports() { let output = console.read_all_output(); assert!(output.contains("Hello World")); - assert!(output.contains("testing output\u{1b}")); + if cfg!(windows) { + assert!(output.contains("testing output\u{1b}")); + } else { + assert!(output.contains("\ntesting output")); + } }); // ensure when the directory changes that the suggestions come from the cwd