From 19a81d1c663c51c193cd11c92556c7a729a85c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Wed, 23 Sep 2026 10:48:00 +0200 Subject: [PATCH] [client] Name the force-reset test for the behavior it proves The silence after ResetMode follows from the undecided mode alone, and the closing SetVersion overwrites forceUpdate from its argument, so the test cannot observe whether the flag itself was cleared. Name it for the stale directive staying silent, which is what it asserts. --- client/internal/updater/manager_mode_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/internal/updater/manager_mode_test.go b/client/internal/updater/manager_mode_test.go index feca68f0c..226a4d913 100644 --- a/client/internal/updater/manager_mode_test.go +++ b/client/internal/updater/manager_mode_test.go @@ -116,7 +116,7 @@ func Test_SetDownloadOnly_ClearsPendingVersion(t *testing.T) { } } -func Test_ResetMode_DropsForceUpdate(t *testing.T) { +func Test_ResetMode_SilencesStaleForceDirective(t *testing.T) { tmpFile := path.Join(t.TempDir(), "update-test-force-reset.json") recorder := peer.NewRecorder("") sub := recorder.SubscribeToEvents()