From 7ea34622bac22bc649d98c7028591c7df7cd4cb9 Mon Sep 17 00:00:00 2001 From: Sindy Li Date: Thu, 19 Dec 2024 17:31:02 -0800 Subject: [PATCH] Make linter happy --- exporter/internal/queue/blocking_queue_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/exporter/internal/queue/blocking_queue_test.go b/exporter/internal/queue/blocking_queue_test.go index 331ecffad46..6c8d03f2573 100644 --- a/exporter/internal/queue/blocking_queue_test.go +++ b/exporter/internal/queue/blocking_queue_test.go @@ -9,6 +9,7 @@ import ( "testing" "time" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -18,15 +19,15 @@ func TestBlockingMemoryQueue(t *testing.T) { done := false err := errors.New("This is an error") go func() { - require.EqualError(t, q.Offer(context.Background(), "a"), err.Error()) + assert.EqualError(t, q.Offer(context.Background(), "a"), err.Error()) done = true }() require.False(t, done) index, ctx, req, ok := q.Read(context.Background()) - require.Equal(t, index, uint64(0)) - require.Equal(t, ctx, context.Background()) - require.Equal(t, req, "a") + require.Equal(t, uint64(0), index) + require.Equal(t, context.Background(), ctx) + require.Equal(t, "a", req) require.True(t, ok) require.False(t, done)