Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-sili committed Dec 20, 2024
1 parent a2a7830 commit 7ea3462
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions exporter/internal/queue/blocking_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

Expand All @@ -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)
Expand Down

0 comments on commit 7ea3462

Please sign in to comment.