Skip to content

Commit

Permalink
handle tests timing out
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini committed Mar 21, 2023
1 parent c015d0d commit aacbd86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/render_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ impl<'a> Renderer<'a> {
self.render_test_outcome(Outcome::Failed, &outcome);
self.failures.push(outcome);
}
Message::Test(TestMessage::Timeout { name }) => {
println!("test {name} has been running for a long time");
}
Message::Test(TestMessage::Started) => {} // Not useful
}
}
Expand Down Expand Up @@ -353,6 +356,7 @@ enum TestMessage {
Ok(TestOutcome),
Failed(TestOutcome),
Ignored(TestOutcome),
Timeout { name: String },
Started,
}

Expand Down

0 comments on commit aacbd86

Please sign in to comment.