mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
[chore] Fix flaky TestJobProgressElapsedTime (#1872)
This commit is contained in:
parent
22ee2c5b07
commit
f09bce3f75
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue