Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
c21f9ca6be
commit
d6d874a578
@ -1,4 +1,3 @@
|
|||||||
use anyhow::anyhow;
|
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use mad::{Component, Mad};
|
use mad::{Component, Mad};
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
@ -18,8 +17,6 @@ impl Component for NeverEndingRun {
|
|||||||
|
|
||||||
tokio::time::sleep(std::time::Duration::from_millis(millis_wait)).await;
|
tokio::time::sleep(std::time::Duration::from_millis(millis_wait)).await;
|
||||||
|
|
||||||
return Err(mad::MadError::Inner(anyhow!("failed to run stuff")));
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -87,7 +84,5 @@ async fn test_can_run_components() -> anyhow::Result<()> {
|
|||||||
.run()
|
.run()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
anyhow::bail!("stuff");
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user