Skip to content

Commit

Permalink
Update overssh require-escaping-arguments test to contain a space.
Browse files Browse the repository at this point in the history
Signed-off-by: Aalekh Patel <aalekh.gwpeck.7998@icloud.com>
  • Loading branch information
aalekhpatel07 authored and NobodyXu committed Jul 28, 2023
1 parent 6842e5a commit e09d2fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/openssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ async fn over_session_ok() {
async fn over_session_ok_require_escaping_arguments() {
for session in connects().await {
let mut command = std::process::Command::new("echo")
.arg("\"\'\'foo\'\'\"")
.arg("\"\'\' foo \'\'\"")
.over_ssh(&session).expect("No env vars or current working dir is set.");

let child = command.output().await.unwrap();
assert_eq!(child.stdout, b"\"\'\'foo\'\'\"\n");
assert_eq!(child.stdout, b"\"\'\' foo \'\'\"\n");

let child = session
.command("echo")
Expand Down

0 comments on commit e09d2fd

Please sign in to comment.