Skip to content

Commit

Permalink
Remove near-duplicate timeout message
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Jan 22, 2024
1 parent 9447d76 commit 752208b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ impl Process {
pub fn poll(&mut self) -> Result<Option<ProcessStatus>> {
let elapsed = self.start.elapsed();
if elapsed > self.timeout {
info!(
"timeout after {:.1}s, terminating child process...",
elapsed.as_secs_f32()
);
debug!(?elapsed, "timeout, terminating child process...",);
self.terminate()?;
Ok(Some(ProcessStatus::Timeout))
} else if let Err(e) = check_interrupted() {
Expand Down
1 change: 0 additions & 1 deletion tests/cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,6 @@ fn timeout_when_unmutated_tree_test_hangs() {
.assert()
.code(4) // exit_code::CLEAN_TESTS_FAILED
.stdout(is_match(r"TIMEOUT *Unmutated baseline in \d+\.\ds").unwrap())
.stderr(contains("timeout"))
.stderr(contains(
"cargo test failed in an unmutated tree, so no mutants were tested",
));
Expand Down

0 comments on commit 752208b

Please sign in to comment.