mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
chore: fix flaky pty_internal_repl (#18486)
This commit is contained in:
parent
4577a6966f
commit
b5d3eb5c23
1 changed files with 2 additions and 5 deletions
|
@ -198,11 +198,8 @@ fn pty_assign_deno_keys_and_deno() {
|
||||||
#[test]
|
#[test]
|
||||||
fn pty_internal_repl() {
|
fn pty_internal_repl() {
|
||||||
util::with_pty(&["repl"], |mut console| {
|
util::with_pty(&["repl"], |mut console| {
|
||||||
console.write_line("globalThis");
|
console.write_line("'Length: ' + Object.keys(globalThis).filter(k => k.startsWith('__DENO_')).length;");
|
||||||
console.write_line_raw("1 + 256");
|
console.expect("Length: 0");
|
||||||
let output = console.read_until("257");
|
|
||||||
assert_contains!(output, "clear:");
|
|
||||||
assert_not_contains!(output, "__DENO_");
|
|
||||||
|
|
||||||
console.write_line_raw("__\t\t");
|
console.write_line_raw("__\t\t");
|
||||||
console.expect("> __");
|
console.expect("> __");
|
||||||
|
|
Loading…
Reference in a new issue