From 5e22991eaae8333f09a5595e5290473911e54ed9 Mon Sep 17 00:00:00 2001 From: Punya Biswal Date: Fri, 19 Feb 2021 16:38:53 +0000 Subject: [PATCH] Relax more time comparisons --- sdk/metric/aggregator/exact/exact_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/metric/aggregator/exact/exact_test.go b/sdk/metric/aggregator/exact/exact_test.go index b403c58281a..daa158d6b5e 100644 --- a/sdk/metric/aggregator/exact/exact_test.go +++ b/sdk/metric/aggregator/exact/exact_test.go @@ -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)) } } @@ -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))