forked from kemitix/git-next
fix(server): Pause before checking CI status when just updated branch
If we check the status of the commit as soon as we push we get a Pass before the CI tests have even started. Wait briefly (10 seconds) to allow the CI to start and set the status to pending. Closes kemitix/git-next#24
This commit is contained in:
parent
50a56aadee
commit
9469d27476
2 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,7 @@ terrors = "0.3"
|
||||||
# Actors
|
# Actors
|
||||||
actix = "0.13"
|
actix = "0.13"
|
||||||
actix-rt = "2.9"
|
actix-rt = "2.9"
|
||||||
|
tokio = { version = "1.37", features = ["full"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
# Testing
|
# Testing
|
||||||
|
|
|
@ -111,6 +111,7 @@ pub async fn advance_next(
|
||||||
match child.wait() {
|
match child.wait() {
|
||||||
Ok(exit_status) => {
|
Ok(exit_status) => {
|
||||||
info!(%exit_status, "Advance Next Success");
|
info!(%exit_status, "Advance Next Success");
|
||||||
|
tokio::time::sleep(std::time::Duration::from_secs(10)).await;
|
||||||
addr.do_send(StartRepo);
|
addr.do_send(StartRepo);
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
|
Loading…
Reference in a new issue