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
This commit is contained in:
parent
c3281a536b
commit
038a55e522
1 changed files with 4 additions and 4 deletions
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestComputeNextRun_CronTimezone verifies Patch #4: cron expressions should
|
// TestComputeNextRun_CronTimezone verifies that cron expressions respect
|
||||||
// respect the schedule.TZ field instead of always using UTC.
|
// the schedule.TZ field instead of always using UTC.
|
||||||
func TestComputeNextRun_CronTimezone(t *testing.T) {
|
func TestComputeNextRun_CronTimezone(t *testing.T) {
|
||||||
tmpDir := t.TempDir()
|
tmpDir := t.TempDir()
|
||||||
storePath := filepath.Join(tmpDir, "jobs.json")
|
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
|
// TestComputeNextRun_DefaultTZ_AppliesWhenSet verifies that SetDefaultTimezone
|
||||||
// and no service default is set, the computation uses UTC.
|
// takes effect when schedule.TZ is empty (service default overrides UTC fallback).
|
||||||
func TestComputeNextRun_DefaultTZ_AppliesWhenSet(t *testing.T) {
|
func TestComputeNextRun_DefaultTZ_AppliesWhenSet(t *testing.T) {
|
||||||
tmpDir := t.TempDir()
|
tmpDir := t.TempDir()
|
||||||
storePath := filepath.Join(tmpDir, "jobs.json")
|
storePath := filepath.Join(tmpDir, "jobs.json")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue