Skip to content

Commit d8b211e

Browse files
committed
fix: Revert dash_e test in crontab
1 parent 572a78a commit d8b211e

File tree

2 files changed

+2
-115
lines changed

2 files changed

+2
-115
lines changed

cron/tests/crontab/kill.rs

Lines changed: 0 additions & 105 deletions
This file was deleted.

cron/tests/crontab/mod.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
// SPDX-License-Identifier: MIT
88
//
99

10-
mod kill;
11-
1210
use std::io::Write;
1311
use std::process::{Command, Output, Stdio};
1412
use std::thread;
@@ -70,14 +68,8 @@ fn no_args() {
7068

7169
#[test]
7270
fn dash_e() {
73-
let test_thread = std::thread::spawn(|| {
74-
let output = run_test_base("crontab", &vec!["-e".to_string()], b"");
75-
assert_eq!(output.status.code(), Some(1));
76-
});
77-
std::thread::sleep(Duration::from_millis(200));
78-
let editor = std::env::var("EDITOR").unwrap_or("vi".to_string());
79-
let _ = kill::find_and_kill_impl(&editor);
80-
let _ = test_thread.join();
71+
let output = run_test_base("crontab", &vec!["-e".to_string()], b"");
72+
assert_eq!(output.status.code(), Some(1));
8173
}
8274

8375
#[test]

0 commit comments

Comments
 (0)