Skip to content

Commit

Permalink
[chore] [processor/cumulativetodelta] Fix test failing on Windows (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax authored Jan 24, 2023
1 parent 45e2905 commit e1106d0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ func Test_metricTracker_sweeper(t *testing.T) {
staleBefore := <-sweepEvent
tickTime := time.Since(start) + tr.maxStaleness*time.Duration(i)
require.False(t, closed.Load())
assert.Less(t, tr.maxStaleness, tickTime)
assert.Less(t, tr.maxStaleness, time.Since(staleBefore.AsTime()))
assert.LessOrEqual(t, tr.maxStaleness, tickTime)
assert.LessOrEqual(t, tr.maxStaleness, time.Since(staleBefore.AsTime()))
}
cancel()
for range sweepEvent {
Expand Down

0 comments on commit e1106d0

Please sign in to comment.