Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fixed unit test race
Browse files Browse the repository at this point in the history
Signed-off-by: Prafulla Mahindrakar <[email protected]>
  • Loading branch information
pmahindrakar-oss committed Sep 16, 2022
1 parent 99a2858 commit 509eb4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scheduler/core/gocron_scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func TestCatchUpAllSchedule(t *testing.T) {
func TestScheduleJob(t *testing.T) {
ctx := context.Background()
True := true
lastTime := time.Date(2022, time.January, 29, 0, 0, 0, 0, time.UTC)
lastTime := time.Now()
scheduleFixed = models.SchedulableEntity{
BaseModel: adminModels.BaseModel{
UpdatedAt: time.Now(),
Expand All @@ -301,7 +301,6 @@ func TestScheduleJob(t *testing.T) {
Unit: admin.FixedRateUnit_MINUTE,
Active: &True,
}

t.Run("using schedule time", func(t *testing.T) {
var schedules []models.SchedulableEntity
schedules = append(schedules, scheduleFixed)
Expand Down

0 comments on commit 509eb4d

Please sign in to comment.