From e8492bb7f7f85af95f0b473c3f786cbb85bdad45 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 24 Oct 2025 16:20:47 -0500 Subject: [PATCH] docs(test2): Use ignore attribute --- crates/libtest2/examples/simple.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/libtest2/examples/simple.rs b/crates/libtest2/examples/simple.rs index 3b65b13..aeb778b 100644 --- a/crates/libtest2/examples/simple.rs +++ b/crates/libtest2/examples/simple.rs @@ -20,9 +20,8 @@ fn check_sokka(_context: &TestContext) -> RunResult { Err(RunError::fail("Sokka tripped and fell :(")) } #[libtest2::test] -fn long_computation(context: &TestContext) -> RunResult { - context.ignore_for("slow")?; - +#[ignore = "slow"] +fn long_computation(_context: &TestContext) -> RunResult { std::thread::sleep(std::time::Duration::from_secs(1)); Ok(()) }