Skip to content

Commit

Permalink
chore: tweak tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtoo committed Dec 31, 2023
1 parent 87b1cf0 commit ed5fadf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
16 changes: 0 additions & 16 deletions tests/retry.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use assert_cmd::Command;
use predicates::prelude::*;

#[cfg(not(target_os = "windows"))]
#[test]
fn successful_1_time() {
let mut cmd = Command::cargo_bin("cx").unwrap();
Expand All @@ -19,21 +18,6 @@ fn successful_1_time() {
));
}

#[cfg(target_os = "windows")]
#[test]
fn successful_1_time() {
let mut cmd = Command::cargo_bin("cx").unwrap();

cmd.arg("retry")
.arg("-c")
.arg("2")
.arg("--")
.arg("echo abc")
.assert()
.success()
.stdout(predicate::eq("abc\n"));
}

#[test]
fn failed_2_time() {
let mut cmd = Command::cargo_bin("cx").unwrap();
Expand Down
16 changes: 0 additions & 16 deletions tests/supervise.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use assert_cmd::Command;
use predicates::prelude::*;

#[cfg(not(target_os = "windows"))]
#[test]
fn echo_2_times() {
let mut cmd = Command::cargo_bin("cx").unwrap();
Expand All @@ -16,21 +15,6 @@ fn echo_2_times() {
.stdout(predicate::eq("abc\nabc\n"));
}

#[cfg(target_os = "windows")]
#[test]
fn echo_2_times() {
let mut cmd = Command::cargo_bin("cx").unwrap();

cmd.arg("supervise")
.arg("-c")
.arg("2")
.arg("--")
.arg("echo abc")
.assert()
.success()
.stdout(predicate::eq("abc\r\nabc\r\n"));
}

#[test]
fn sleep_one_time() {
let mut cmd = Command::cargo_bin("cx").unwrap();
Expand Down

0 comments on commit ed5fadf

Please sign in to comment.