From 72418591f01288de44fd2dd7d01f32334492c3d7 Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 15 Nov 2026 12:30:18 +0800 Subject: [PATCH] cli tests: POST /api/warm-all is named with warm-now, as stage 3 (#6724) 5bd41301b added POST /api/warm-all (All accounts warms every account in use) and left TestEveryRouteHasACommandOrIsNamed red: the route had no command and no name. Its sibling POST /api/warm-now waits for a command in stage 3; warm-all goes beside it the same way. Run (mica, at origin/main 62ced98cc): go test ./internal/cli/ ok (43s). Broken by hand (the line taken out): TestEveryRouteHasACommandOrIsNamed red, as on 5bd41301b. gofmt -l clean. Not run: the full ./... suite (a one-line test-table entry). --- internal/cli/settings_parity_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/cli/settings_parity_test.go b/internal/cli/settings_parity_test.go index abd4b859a..93fe9b6ae 100644 --- a/internal/cli/settings_parity_test.go +++ b/internal/cli/settings_parity_test.go @@ -337,6 +337,7 @@ var notYet = map[string]string{ "POST /api/settings/update-skip": S2, // api.go "POST /api/settings/workbuddy-checkin": S2, // api.go "POST /api/usage/arrange": W, // api.go + "POST /api/warm-all": A, // api.go: All accounts warms every account in use (5bd41301b) "POST /api/warm-now": A, // api.go "POST /api/window/{action}": W, // api.go "GET /api/autobackup": S2, // backup.go: Back up by itself