Skip to content

Commit

Permalink
[chore] Fix flaky TestJobProgressElapsedTime (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcastorina authored Oct 7, 2023
1 parent 22ee2c5 commit f09bce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sources/job_progress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestJobProgressElapsedTime(t *testing.T) {
metrics := JobProgressMetrics{}
assert.Equal(t, time.Duration(0), metrics.ElapsedTime())

metrics.StartTime = time.Now()
metrics.StartTime = time.Date(2022, time.March, 30, 0, 0, 0, 0, time.UTC)
assert.Greater(t, metrics.ElapsedTime(), time.Duration(0))

metrics.EndTime = metrics.StartTime.Add(1 * time.Hour)
Expand Down

0 comments on commit f09bce3

Please sign in to comment.