Skip to content

Commit

Permalink
[chore] Fix panic caused by queue_retry tests (#6807)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax authored Dec 15, 2022
1 parent cfa49fc commit c1e1ea2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exporter/exporterhelper/queued_retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,9 @@ func TestQueuedRetry_DropOnFull(t *testing.T) {
t.Cleanup(func() {
assert.NoError(t, be.Shutdown(context.Background()))
})
err = be.sender.send(newMockRequest(context.Background(), 2, errors.New("transient error")))
require.Error(t, err)
ocs.run(func() {
require.Error(t, be.sender.send(newMockRequest(context.Background(), 2, errors.New("transient error"))))
})
}

func TestQueuedRetryHappyPath(t *testing.T) {
Expand Down

0 comments on commit c1e1ea2

Please sign in to comment.