diff --git a/schedule-interval_test.go b/schedule-interval_test.go index ecde52f4fe5443db14768f4d21dc45230939755d..ad72822bbda77126d7fc8deccf222cfdfff350a6 100644 --- a/schedule-interval_test.go +++ b/schedule-interval_test.go @@ -28,7 +28,7 @@ interval: "1h30m" assert.Equal(t, expectedTime, *sp.Time, "the time should be parsed correctly") expectedInterval, _ := time.ParseDuration("1h30m") - assert.Equal(t, expectedInterval, sp.Delay, "the interval should be parsed correctly") + assert.Equal(t, expectedInterval, sp.Interval, "the interval should be parsed correctly") } // TestUnmarshalJSON tests the UnmarshalJSON method @@ -56,5 +56,5 @@ func TestUnmarshalJSON(t *testing.T) { // Verify that the Delay field is correctly parsed expectedInterval, _ := time.ParseDuration("1h30m") - assert.Equal(t, expectedInterval, sp.Delay, "Interval should be correctly parsed") + assert.Equal(t, expectedInterval, sp.Interval, "Interval should be correctly parsed") } diff --git a/scheduler_test.go b/scheduler_test.go index 7fc0d4a18109f6f7e2a5f8680a86c278c04220f6..682292da47b66a30050881cf22e89747d61dbece 100644 --- a/scheduler_test.go +++ b/scheduler_test.go @@ -430,6 +430,6 @@ time: "2023-12-15T12:00:00Z" // Prüfen, ob die Werte korrekt unmarshalled wurden assert.Equal(t, "interval", sp.Type, "Type should be unmarshalled correctly") - assert.Equal(t, expectedInterval, sp.Delay, "Interval should be unmarshalled correctly") + assert.Equal(t, expectedInterval, sp.Interval, "Interval should be unmarshalled correctly") assert.Equal(t, &expectedTime, sp.Time, "Time should be unmarshalled correctly") }