From 7a606de88fa0cde6b554a40b21db821caf97a3fd Mon Sep 17 00:00:00 2001 From: Joe Kralicky Date: Fri, 6 Dec 2024 04:18:46 +0000 Subject: [PATCH] fix sampling test typo --- internal/testenv/selftests/tracing_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/testenv/selftests/tracing_test.go b/internal/testenv/selftests/tracing_test.go index 3ea5cfb26..36c1f92a6 100644 --- a/internal/testenv/selftests/tracing_test.go +++ b/internal/testenv/selftests/tracing_test.go @@ -149,8 +149,8 @@ func TestSampling(t *testing.T) { // if the request already has a traceparent header, they will always be sampled // regardless of the random sample rate we configured - assert.InDelta(t, int32(100), sampled.Load(), 10) - assert.InDelta(t, int32(0), notSampled.Load(), 10) + assert.Equal(t, int32(100), sampled.Load()) + assert.Equal(t, int32(0), notSampled.Load()) sampled.Store(0) notSampled.Store(0)