@@ -31,7 +31,6 @@ import (
3131 "github.com/stretchr/testify/assert"
3232 "github.com/stretchr/testify/require"
3333
34- "go.elastic.co/apm/v2/apmtest"
3534 "go.elastic.co/fastjson"
3635
3736 "github.com/elastic/beats/v7/libbeat/beat"
@@ -54,7 +53,7 @@ func TestPublisherStop(t *testing.T) {
5453 // Create a pipeline with a limited queue size and no outputs,
5554 // so we can simulate a pipeline that blocks indefinitely.
5655 pipeline , client := newBlockingPipeline (t )
57- publisher , err := publish .NewPublisher (pipeline , apmtest . DiscardTracer )
56+ publisher , err := publish .NewPublisher (pipeline )
5857 require .NoError (t , err )
5958 defer func () {
6059 cancelledContext , cancel := context .WithCancel (context .Background ())
@@ -90,7 +89,7 @@ func TestPublisherStop(t *testing.T) {
9089
9190func TestPublisherStopShutdownInactive (t * testing.T ) {
9291 pipeline , _ := newBlockingPipeline (t )
93- publisher , err := publish .NewPublisher (pipeline , apmtest . DiscardTracer )
92+ publisher , err := publish .NewPublisher (pipeline )
9493 require .NoError (t , err )
9594
9695 // There are no active events, so the publisher should stop immediately
@@ -192,7 +191,6 @@ func BenchmarkPublisher(b *testing.B) {
192191 acker .Open ()
193192 publisher , err := publish .NewPublisher (
194193 pipetool .WithACKer (pipeline , acker ),
195- apmtest .DiscardTracer ,
196194 )
197195 require .NoError (b , err )
198196
0 commit comments