summaryrefslogtreecommitdiff
path: root/cli/tests/integration/repl_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-11-22 03:45:34 +0100
committerGitHub <noreply@github.com>2023-11-22 03:45:34 +0100
commita8c24d2a8b794eec343a518614cbca0a87b9e2fb (patch)
tree383562e2165e247eb15728f27412764c78c7821d /cli/tests/integration/repl_tests.rs
parentcc5d6df50b3e5a755bdec884ec78dc005e97b5a2 (diff)
fix: 'Promise was collected' error in REPL/jupyter (#21272)
Fixes #20528
Diffstat (limited to 'cli/tests/integration/repl_tests.rs')
-rw-r--r--cli/tests/integration/repl_tests.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs
index a4675c388..6c208ac2c 100644
--- a/cli/tests/integration/repl_tests.rs
+++ b/cli/tests/integration/repl_tests.rs
@@ -1093,3 +1093,18 @@ fn env_file() {
assert_contains!(console.all_output(), "BAR",);
});
}
+
+// Regression test for https://github.com/denoland/deno/issues/20528
+#[test]
+fn pty_promise_was_collected_regression_test() {
+ let (out, err) = util::run_and_collect_output_with_args(
+ true,
+ vec!["repl"],
+ Some(vec!["new Uint8Array(64 * 1024 * 1024)"]),
+ None,
+ false,
+ );
+
+ assert_contains!(out, "Uint8Array(67108864)");
+ assert!(err.is_empty());
+}