From ec5b96c44fc020486689d4d970fbb8c51637a3c0 Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 16 Nov 2026 01:12:39 +0800 Subject: [PATCH] cli test: POST /api/quit/disconnect is the window's own (#6786) 261f48226 added the Quit question's Disconnect and quit route without naming it in the CLI parity list, and TestEveryRouteHasACommandOrIsNamed has been red on main since (CI at 0ffb21f83, ubuntu and macOS). It quits the app, so it is the window's own, beside GET /api/quit. Run at origin/main f9807c5e8 plus this: go test -tags nogui -count=1 -run TestEveryRouteHasACommandOrIsNamed ./internal/cli on mote ok (red at 0ffb21f83 on CI); the whole internal/cli package on mica ok (44s). gofmt -l clean. --- 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 3d89966d3..dfc55eca0 100644 --- a/internal/cli/settings_parity_test.go +++ b/internal/cli/settings_parity_test.go @@ -255,6 +255,7 @@ var notYet = map[string]string{ "GET /api/appearance/wallpaper": W, // appearance.go "POST /api/appearance/wallpaper": W, // appearance.go: the picture comes from the window's file picker "GET /api/quit": W, // api.go: the window's Quit question + "POST /api/quit/disconnect": W, // api.go: the Quit question's Disconnect and quit, which quits the app "POST /api/page-away": W, // api.go: the page says it went from view, so its caches can go "GET /api/remote": W, // remote.go: another magpie opened in a window of the app "POST /api/remote": W, // remote.go