fix: flaky TestGetPendingGates - add status assertion
ci / test (push) Successful in 2m30s

This commit is contained in:
Test
2026-09-03 09:10:37 -07:00
parent 1c16869126
commit fd2ebce8e1
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -47,7 +47,9 @@ func TestGetPendingGates(t *testing.T) {
pending := manager.GetPendingGates()
assert.Equal(t, 1, len(pending))
if len(pending) > 0 {
assert.Equal(t, gate2.ID, pending[0].ID)
// Don't rely on map iteration order - just check it's the unapproved gate
assert.Equal(t, StatusPending, pending[0].Decision.Status)
assert.Equal(t, gate2.ID, pending[0].ID) // gate2 is the only pending one
}
}
+1 -1
View File
@@ -9,6 +9,6 @@ metadata:
app.kubernetes.io/name: poimen
app.kubernetes.io/component: orchestrator
data:
GIT_COMMIT: "e82600c1" # Updated automatically by CI/CD
GIT_COMMIT: "b37319a9" # Updated automatically by CI/CD
GIT_BRANCH: "main"
DEPLOYMENT_DATE: "2026-09-03"
+1 -1
View File
@@ -13,7 +13,7 @@ spec:
labels:
app: poimen-worker
annotations:
git-commit: "e82600c1" # ✅ Updated on each push, triggers rolling restart
git-commit: "b37319a9" # ✅ Updated on each push, triggers rolling restart
deployment-date: "2026-09-03"
spec:
containers: