summaryrefslogtreecommitdiff
path: root/cli/tests/integration/repl_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-28 20:25:28 -0400
committerGitHub <noreply@github.com>2023-03-29 00:25:28 +0000
commitb5d3eb5c23db8946c3f563b1a1fb21319a1c0a77 (patch)
treea60523fa414f216823ff62bb3c3921f9b8aaf419 /cli/tests/integration/repl_tests.rs
parent4577a6966febc8a2cd58500ccedd8f3130bd500f (diff)
chore: fix flaky pty_internal_repl (#18486)
Diffstat (limited to 'cli/tests/integration/repl_tests.rs')
-rw-r--r--cli/tests/integration/repl_tests.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs
index 82cae5024..95a747523 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("> __");