diff options
author | uki00a <uki00a@gmail.com> | 2020-05-20 02:33:11 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 13:33:11 -0400 |
commit | cdc9323cccdee544562712018f722026bdfbbd6c (patch) | |
tree | 45a8698cc74ffe27bfef3484c3f752a7cac0398d /cli/tests/integration_tests.rs | |
parent | 1be7ec47ac3b6e63be2b03245a26e060b8268b5e (diff) |
fix: REPL does not exit properly when close() is called (#5451)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 476a08224..45c3a011f 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -696,13 +696,15 @@ const REPL_MSG: &str = "exit using ctrl+d or close()\n"; #[test] fn repl_test_close_command() { - let (_out, err) = util::run_and_collect_output( + let (out, err) = util::run_and_collect_output( true, "repl", Some(vec!["close()", "'ignored'"]), None, false, ); + + assert!(!out.contains("ignored")); assert!(err.is_empty()); } |