From 038a55e522255f917170c528433116aa769959d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=B7=AF=E8=B7=AF?= Date: Thu, 5 Mar 2026 16:19:53 +0800 Subject: [PATCH] docs(cron): fix misleading test comments per Copilot review - Remove 'Patch #4' reference that is meaningless in-repo - Correct DefaultTZ_AppliesWhenSet doc to match actual test behavior --- pkg/cron/timezone_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cron/timezone_test.go b/pkg/cron/timezone_test.go index dbe57a12d..2b788f028 100644 --- a/pkg/cron/timezone_test.go +++ b/pkg/cron/timezone_test.go @@ -6,8 +6,8 @@ import ( "time" ) -// TestComputeNextRun_CronTimezone verifies Patch #4: cron expressions should -// respect the schedule.TZ field instead of always using UTC. +// TestComputeNextRun_CronTimezone verifies that cron expressions respect +// the schedule.TZ field instead of always using UTC. func TestComputeNextRun_CronTimezone(t *testing.T) { tmpDir := t.TempDir() storePath := filepath.Join(tmpDir, "jobs.json") @@ -73,8 +73,8 @@ func TestComputeNextRun_CronTimezone(t *testing.T) { } } -// TestComputeNextRun_DefaultTZ_AppliesWhenSet verifies that when TZ is empty -// and no service default is set, the computation uses UTC. +// TestComputeNextRun_DefaultTZ_AppliesWhenSet verifies that SetDefaultTimezone +// takes effect when schedule.TZ is empty (service default overrides UTC fallback). func TestComputeNextRun_DefaultTZ_AppliesWhenSet(t *testing.T) { tmpDir := t.TempDir() storePath := filepath.Join(tmpDir, "jobs.json")