mirror of
https://github.com/nukesor/pueue
synced 2024-07-21 10:14:16 +00:00
fix: Flaky reset test
This commit is contained in:
parent
b7aefbb146
commit
bb6909222d
|
@ -4,7 +4,7 @@ use pueue_lib::network::message::*;
|
|||
use crate::fixtures::*;
|
||||
use crate::helper::*;
|
||||
|
||||
/// A reset command kills all tasks and forces a clean slate.
|
||||
/// A reset command kills all tasks and forces a clean state.
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
async fn test_reset() -> Result<()> {
|
||||
let daemon = daemon().await?;
|
||||
|
@ -15,7 +15,7 @@ async fn test_reset() -> Result<()> {
|
|||
add_task(shared, "failed", false).await?;
|
||||
add_task(shared, "sleep 60", false).await?;
|
||||
add_task(shared, "ls", false).await?;
|
||||
wait_for_task_condition(shared, 1, |task| task.is_running()).await?;
|
||||
wait_for_task_condition(shared, 2, |task| task.is_running()).await?;
|
||||
|
||||
// Reset the daemon
|
||||
send_message(shared, ResetMessage {})
|
||||
|
|
Loading…
Reference in a new issue