fix(test): give actix more time to process message
All checks were successful
Rust / build (push) Successful in 10m4s
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 1m1s

This commit is contained in:
Paul Campbell 2024-08-31 09:31:13 +01:00
parent eca556f976
commit a650996ecd

View file

@ -51,15 +51,12 @@ async fn when_pending_should_recheck_ci_status() -> TestResult {
git::forge::commit::Status::Pending, git::forge::commit::Status::Pending,
))) )))
.await?; .await?;
actix_rt::time::sleep(Duration::from_millis(9)).await;
System::current().stop(); System::current().stop();
//then //then
tracing::debug!(?log, ""); tracing::debug!(?log, "");
log.read().map_err(|e| e.to_string()).map(|l| { log.require_message_containing("send: ValidateRepo")?;
assert!(l
.iter()
.any(|message| message.contains("send: ValidateRepo")));
})?;
Ok(()) Ok(())
} }