Skip to content

Commit

Permalink
chore: make a couple repl tests less flaky (denoland#23636)
Browse files Browse the repository at this point in the history
These were both failing for me from time to time locally.
  • Loading branch information
dsherret authored May 1, 2024
1 parent f270e41 commit e0069c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/integration/repl_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;");
Expand Down Expand Up @@ -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(
"\
Expand All @@ -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 (");
Expand Down

0 comments on commit e0069c8

Please sign in to comment.