gui tests: the Settings save guard sets BusyLoad (#4739)

TestSettingsSaveKeepsWhatItDoesNotSend has been red since 8d8df0639
added settings.BusyLoad: the guard asks every field the Settings page
doesn't send to be set in the test, and BusyLoad wasn't. POST
/api/settings already keeps it (in.BusyLoad = cur.BusyLoad), so only
the test changes: it now sets 150 and checks it survives the save.

Run (mote): go test -tags nogui ./internal/gui -run
TestSettingsSaveKeepsWhatItDoesNotSend ok; broken by hand, dropping
the carry line in api.go turns it red on BusyLoad.
This commit is contained in:
yetone
2026-11-01 15:23:15 +08:00
parent 01ccbd40a0
commit b646a91277
+1
View File
@@ -202,6 +202,7 @@ func TestSettingsSaveKeepsWhatItDoesNotSend(t *testing.T) {
was.PanelShortcut = "Ctrl+Alt+K"
was.SearcherThen = []string{"fake/m1", "fake/m2"} // set in its own row
was.RouterNote = "Los Angeles" // the Library's servers/hub-note
was.BusyLoad = 150 // the Routing page's busy-load
if err := settings.Save(was); err != nil {
t.Fatal(err)
}