diff --git a/flake.nix b/flake.nix index a6dfb977..31a38416 100644 --- a/flake.nix +++ b/flake.nix @@ -353,10 +353,9 @@ response = json.loads(data) - assert len(response) == 3, "Expected exactly three status updates for latest commit (queued, started, finished)!" + assert len(response) == 2, "Expected exactly three status updates for latest commit (queued, finished)!" assert response[0]['status'] == "success", "Expected finished status to be success!" - assert response[1]['status'] == "pending", "Expected started status to be pending!" - assert response[2]['status'] == "pending", "Expected queued status to be pending!" + assert response[1]['status'] == "pending", "Expected queued status to be pending!" machine.shutdown() ''; diff --git a/src/lib/Hydra/Plugin/GiteaStatus.pm b/src/lib/Hydra/Plugin/GiteaStatus.pm index 426c93f5..f3498941 100644 --- a/src/lib/Hydra/Plugin/GiteaStatus.pm +++ b/src/lib/Hydra/Plugin/GiteaStatus.pm @@ -88,10 +88,6 @@ sub buildQueued { common(@_, [], 0); } -sub buildStarted { - common(@_, [], 1); -} - sub buildFinished { common(@_, 2); }