Skip to content

Commit 8087d2a

Browse files
committed
test(terminal): use cat instead of bash for test_terminal_echo to avoid CI job control hangs
1 parent d1f4ee9 commit 8087d2a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

anycode-backend/src/terminal.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,18 @@ mod tests {
173173
async fn test_terminal_echo() -> Result<()> {
174174
let (tx, mut rx) = mpsc::channel::<String>(10);
175175

176+
let shell = if cfg!(target_os = "windows") {
177+
"cmd.exe".to_string()
178+
} else {
179+
"cat".to_string()
180+
};
181+
176182
let terminal = Terminal::new(
177183
"test".to_string(),
178184
"session1".to_string(),
179185
30,
180186
80,
181-
Some("bash".to_string()),
187+
Some(shell),
182188
None,
183189
tx,
184190
)

0 commit comments

Comments
 (0)