Skip to content

Commit

Permalink
Fix shell in winsize test
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhang committed Sep 8, 2024
1 parent 3699e3d commit 7a05fc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/sshx/src/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ mod tests {

#[tokio::test]
async fn winsize() -> Result<()> {
let mut terminal = Terminal::new("/bin/sh").await?;
let shell = if cfg!(unix) { "/bin/sh" } else { "cmd.exe" };
let mut terminal = Terminal::new(shell).await?;
assert_eq!(terminal.get_winsize()?, (0, 0));
terminal.set_winsize(120, 72)?;
assert_eq!(terminal.get_winsize()?, (120, 72));
Expand Down

0 comments on commit 7a05fc3

Please sign in to comment.