From 51da6f1f5cdde8097a6499751cc43f5fc5195582 Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 11 Nov 2026 04:14:58 +0800 Subject: [PATCH] gui tests: the settings-keep test sets Bark's server, key and daily time, which have their own route 71c4ef2d0 added BarkServer, BarkKey and BarkDaily, which the Settings page doesn't send (POST /api/settings/bark sets them), and left them unset in TestSettingsSaveKeepsWhatItDoesNotSend, so it was red on main at 47e30d0e9 ("BarkServer: not sent by the Settings page; set it in this test"). Run on mote: go test -run TestSettingsSave ./internal/gui ok; without the change, red on origin/main 47e30d0e9 with the three Bark lines. --- internal/gui/settings_keep_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/gui/settings_keep_test.go b/internal/gui/settings_keep_test.go index 03abcf9ce..f6bbe0faf 100644 --- a/internal/gui/settings_keep_test.go +++ b/internal/gui/settings_keep_test.go @@ -219,6 +219,8 @@ func TestSettingsSaveKeepsWhatItDoesNotSend(t *testing.T) { was.BusyLoad = 150 // the Routing page's busy-load was.MTLS = true // Network and sharing's settings/mtls was.HTTPS = true // Network and sharing's settings/https + // Settings > Usage's Bark row has its own route (settings/bark) + was.BarkServer, was.BarkKey, was.BarkDaily = "https://bark.example.com", "kept", "21:30" // the Routing groups page's defaults for every group (groups/defaults) was.GroupSink, was.GroupFirstToken, was.GroupPatience = true, 30, 120 if err := settings.Save(was); err != nil {