Skip to content

Commit

Permalink
Relax more time comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
punya committed Feb 19, 2021
1 parent 9b21669 commit 5e22991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/metric/aggregator/exact/exact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (mt *mergeTest) run(t *testing.T, profile aggregatortest.Profile) {
received.Append(s.Number)

if i > 0 {
require.True(t, pts[i-1].Time.Before(pts[i].Time))
require.False(t, pts[i-1].Time.After(pts[i].Time))
}
}

Expand Down Expand Up @@ -282,7 +282,7 @@ func TestExactFloat64(t *testing.T) {
for i := 0; i < len(po); i++ {
require.Equal(t, all.Points()[i], po[i].Number, "Wrong point at position %d", i)
if i > 0 {
require.True(t, po[i-1].Time.Before(po[i].Time))
require.False(t, po[i-1].Time.After(po[i].Time))
}
}
require.False(t, po[0].Time.Before(startTime))
Expand Down

0 comments on commit 5e22991

Please sign in to comment.