We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6b2afa + e8492bb commit c61a9e5Copy full SHA for c61a9e5
crates/libtest2/examples/simple.rs
@@ -20,9 +20,8 @@ fn check_sokka(_context: &TestContext) -> RunResult {
20
Err(RunError::fail("Sokka tripped and fell :("))
21
}
22
#[libtest2::test]
23
-fn long_computation(context: &TestContext) -> RunResult {
24
- context.ignore_for("slow")?;
25
-
+#[ignore = "slow"]
+fn long_computation(_context: &TestContext) -> RunResult {
26
std::thread::sleep(std::time::Duration::from_secs(1));
27
Ok(())
28
0 commit comments