Fix flaky daemon::group::colored test
The status output sometimes ran before the group state git changed; add
a group status wait for the state to change.
@@ -2,6 +2,7 @@ use std::collections::HashMap;
use anyhow::{Context, Result};
use pueue_lib::network::message::*;
+use pueue_lib::state::GroupStatus;
use crate::fixtures::*;
use crate::helper::*;
@@ -42,6 +43,8 @@ async fn colored() -> Result<()> {
.await
.context("Failed to send message")?;
+ wait_for_group_status(shared, PUEUE_DEFAULT_GROUP, GroupStatus::Paused).await?;
+
// Get the group status output
let output = run_client_command(shared, &["--color", "always", "group"])?;
assert_stdout_matches("group__colored", output.stdout, HashMap::new())?;
