Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BUILD_INFO_IMPORT_PATH=go.opentelemetry.io/collector/internal/version
all: gotidy test build

test:
for dir in $(GODIRS); do (cd $${dir}; $(GOCMD) test --tags=assert ./...) || exit 1; done
for dir in $(GODIRS); do (cd $${dir}; $(GOCMD) test -race --tags=assert ./...) || exit 1; done

fmt:
for dir in $(GODIRS); do (cd $${dir}; $(GOCMD) fmt ./...) || exit 1; done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func TestBatchProcessorSpansPanicRecover(t *testing.T) {
// until batch size reached to unblock.
wg.Add(1)
go func() {
err = bp.ConsumeTraces(context.Background(), td)
err := bp.ConsumeTraces(context.Background(), td)
assert.Contains(t, err.Error(), "testing panic")
wg.Done()
}()
Expand Down Expand Up @@ -168,7 +168,7 @@ func TestBatchProcessorMetricsPanicRecover(t *testing.T) {
md.ResourceMetrics().At(0).CopyTo(sentResourceMetrics.AppendEmpty())
wg.Add(1)
go func() {
err = bp.ConsumeMetrics(context.Background(), md)
err := bp.ConsumeMetrics(context.Background(), md)
assert.Contains(t, err.Error(), "testing panic")
wg.Done()
}()
Expand Down Expand Up @@ -202,7 +202,7 @@ func TestBatchProcessorLogsPanicRecover(t *testing.T) {
ld.ResourceLogs().At(0).CopyTo(sentResourceLogs.AppendEmpty())
wg.Add(1)
go func() {
err = bp.ConsumeLogs(context.Background(), ld)
err := bp.ConsumeLogs(context.Background(), ld)
assert.Contains(t, err.Error(), "testing panic")
wg.Done()
}()
Expand Down Expand Up @@ -307,7 +307,7 @@ func TestBatchProcessorCancelContext(t *testing.T) {
// until batch size reached to unblock.
wg.Add(1)
go func() {
err = bp.ConsumeTraces(ctx, td)
err := bp.ConsumeTraces(ctx, td)
assert.Contains(t, err.Error(), "context canceled")
wg.Done()
}()
Expand Down