From a985752fdd5643437ff19ec244ab1fb8d9104bb7 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 28 Mar 2023 19:53:27 -0400 Subject: [PATCH] chore: fix flaky pty_internal_repl --- cli/tests/integration/repl_tests.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index 82cae5024cfb81..95a747523bca18 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -198,11 +198,8 @@ fn pty_assign_deno_keys_and_deno() { #[test] fn pty_internal_repl() { util::with_pty(&["repl"], |mut console| { - console.write_line("globalThis"); - console.write_line_raw("1 + 256"); - let output = console.read_until("257"); - assert_contains!(output, "clear:"); - assert_not_contains!(output, "__DENO_"); + console.write_line("'Length: ' + Object.keys(globalThis).filter(k => k.startsWith('__DENO_')).length;"); + console.expect("Length: 0"); console.write_line_raw("__\t\t"); console.expect("> __");