diff --git a/pkg/sources/job_progress_test.go b/pkg/sources/job_progress_test.go index f2117490c..9376b329e 100644 --- a/pkg/sources/job_progress_test.go +++ b/pkg/sources/job_progress_test.go @@ -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)