# red-proof D14-two-steps-a-night: mutate internal/stacks/unattended.go
# - '\t\t\tsum.add(step)\n'
# + '\t\t\tsum.add(step)\n\t\t\tif outcome == LegOutcomeDone {\n\t\t\t\tif _, r2 := m.legCandidate(ctx, name, o); r2 == "" && m.StartGuardedUpdate(name) == nil {\n\t\t\t\t\tm.legWait(ctx, o, name)\n\t\t\t\t}\n\t\t\t}\n'
# run: go test ./internal/stacks/ -run ^TestLeg_OneStepPerAppPerNight$ -v -count=1  (rc=1)

=== RUN   TestLeg_OneStepPerAppPerNight
2026/09/24 21:56:03 [DEBUG] [stacks] SaveAppConfig: saving /tmp/TestLeg_OneStepPerAppPerNight1986641340/001/stacks/nextcloud — 0 env vars, 0 encrypted, 0 sensitive fields
2026/09/24 21:56:03 [INFO] [stacks] SaveAppConfig: saved config for nextcloud
2026/09/24 21:56:03 [DEBUG] [stacks] SaveAppConfig: saving /tmp/TestLeg_OneStepPerAppPerNight1986641340/001/stacks/nextcloud — 0 env vars, 0 encrypted, 0 sensitive fields
2026/09/24 21:56:03 [INFO] [stacks] SaveAppConfig: saved config for nextcloud
2026/09/24 21:56:03 [DEBUG] [stacks] SaveAppConfig: saving /tmp/TestLeg_OneStepPerAppPerNight1986641340/001/stacks/nextcloud — 0 env vars, 0 encrypted, 0 sensitive fields
2026/09/24 21:56:03 [INFO] [stacks] SaveAppConfig: saved config for nextcloud
2026/09/24 21:56:03 [DEBUG] [stacks] SaveAppConfig: saving /tmp/TestLeg_OneStepPerAppPerNight1986641340/001/stacks/nextcloud — 0 env vars, 0 encrypted, 0 sensitive fields
2026/09/24 21:56:03 [INFO] [stacks] SaveAppConfig: saved config for nextcloud
2026/09/24 21:56:03 [DEBUG] [stacks] SaveAppConfig: saving /tmp/TestLeg_OneStepPerAppPerNight1986641340/001/stacks/nextcloud — 0 env vars, 0 encrypted, 0 sensitive fields
2026/09/24 21:56:03 [INFO] [stacks] SaveAppConfig: saved config for nextcloud
2026/09/24 21:56:03 [DEBUG] [stacks] SaveAppConfig: saving /tmp/TestLeg_OneStepPerAppPerNight1986641340/001/stacks/nextcloud — 0 env vars, 0 encrypted, 0 sensitive fields
2026/09/24 21:56:03 [INFO] [stacks] SaveAppConfig: saved config for nextcloud
    unattended_test.go:108: the leg took 2 steps in one night (ups=[nextcloud:33.0.0-apache nextcloud:34.0.1-apache]), want exactly one
--- FAIL: TestLeg_OneStepPerAppPerNight (0.01s)
FAIL
FAIL	gitea.dooplex.hu/admin/felhom-controller/internal/stacks	0.020s
FAIL
