Goit

Simple and lightweight Git web server
Mirror of https://github.com/Jamozed/Goit
git clone http://git.omkov.net/Goit
Log | Tree | Refs | README | Download

AuthorJakob Wakeling <[email protected]>
Date2023-12-23 11:36:46
Commit61181bb95ba5fa0c678fe0e34000bea1018d8bd6
Parent313c62bc5978a59e200ebe216fff830fa3b74d18

Fix incorrect schedule unit test

Diffstat

M src/cron/schedule_test.go | 2 +-

1 files changed, 1 insertions, 1 deletions

diff --git a/src/cron/schedule_test.go b/src/cron/schedule_test.go
index dde2256..0e2b417 100644
--- a/src/cron/schedule_test.go
+++ b/src/cron/schedule_test.go
@@ -124,7 +124,7 @@ func TestNext(t *testing.T) {
 	t.Run("Immediate", func(t *testing.T) {
 		schedule := cron.Schedule{-1, -1, -1, -1, -1, -1}
 		baseTime := time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC)
-		expected := time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC)
+		expected := time.Date(1970, 1, 1, 0, 0, 1, 0, time.UTC)
 
 		r := schedule.Next(baseTime)
 		if r != expected {