fix: tests
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-08-07 11:33:40 +02:00
parent c21f9ca6be
commit d6d874a578
Signed by: kjuulh
GPG Key ID: D85D7535F18F35FA

View File

@ -1,4 +1,3 @@
use anyhow::anyhow;
use async_trait::async_trait;
use mad::{Component, Mad};
use rand::Rng;
@ -18,8 +17,6 @@ impl Component for NeverEndingRun {
tokio::time::sleep(std::time::Duration::from_millis(millis_wait)).await;
return Err(mad::MadError::Inner(anyhow!("failed to run stuff")));
Ok(())
}
}
@ -87,7 +84,5 @@ async fn test_can_run_components() -> anyhow::Result<()> {
.run()
.await?;
anyhow::bail!("stuff");
Ok(())
}