handle tests timing out

This commit is contained in:
Pietro Albini 2023-03-21 15:07:05 +01:00
parent c015d0d2fa
commit aacbd8671b
No known key found for this signature in database
GPG Key ID: CD76B35F7734769E

View File

@ -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
}
}
@ -353,6 +356,7 @@ enum TestMessage {
Ok(TestOutcome),
Failed(TestOutcome),
Ignored(TestOutcome),
Timeout { name: String },
Started,
}