From 944d708e3c12e49fc0a3a4b632f21faad4d400c7 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 13 Jul 2022 10:49:14 -0400 Subject: [PATCH] chore: fix pty_complete_imports test on linux/mac (#15191) --- 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 e249788769..94cbef3c93 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -185,10 +185,14 @@ fn pty_complete_imports() { let output = console.read_all_output(); assert_contains!(output, "Hello World"); }); +} +#[test] +fn pty_complete_imports_no_panic_empty_specifier() { // does not panic when tabbing when empty util::with_pty(&["repl"], |mut console| { - console.write_line("import '\t"); + console.write_line("import '\t';"); + console.write_line("close();"); }); }