From e0069c87c024589e1e00d0f3e2286ef21efd029e Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 1 May 2024 12:37:17 -0400 Subject: [PATCH] chore: make a couple repl tests less flaky (#23636) These were both failing for me from time to time locally. --- tests/integration/repl_tests.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/integration/repl_tests.rs b/tests/integration/repl_tests.rs index 26a92492ce1e52..4dc6ab44c3f498 100644 --- a/tests/integration/repl_tests.rs +++ b/tests/integration/repl_tests.rs @@ -786,7 +786,7 @@ fn pty_clear_function() { console.expect_raw_in_current_output("[1;1H"); } console.expect("undefined"); // advance past the "clear()"'s undefined - console.expect("> "); + console.expect(">"); console.write_line("const clear = 1234 + 2000;"); console.expect("undefined"); console.write_line("clear;"); @@ -899,7 +899,7 @@ fn repl_with_quiet_flag() { } #[test] -fn repl_unit_tests() { +fn repl_deno_test() { util::with_pty(&["repl"], |mut console| { console.write_line_raw( "\ @@ -919,7 +919,6 @@ fn repl_unit_tests() { console.expect("Hello again from outside of test!"); // FIXME(nayeemrmn): REPL unit tests don't support output capturing. console.expect("Hello from inside of test!"); - console.expect("test1 ..."); console.expect(" step1 ... ok ("); console.expect("test1 ... ok ("); console.expect("test2 ... FAILED (");