@@ -26,7 +26,6 @@ import (
2626 "go.opentelemetry.io/collector/receiver/receivertest"
2727 "go.opentelemetry.io/collector/service/internal/builders"
2828 "go.opentelemetry.io/collector/service/internal/status"
29- "go.opentelemetry.io/collector/service/internal/status/statustest"
3029 "go.opentelemetry.io/collector/service/pipelines"
3130)
3231
@@ -119,7 +118,7 @@ func testGraphStartStop(t *testing.T) {
119118 }
120119
121120 ctx .order = map [component.ID ]int {}
122- require .NoError (t , pg .ShutdownAll (ctx , statustest .NewNopStatusReporter ()))
121+ require .NoError (t , pg .ShutdownAll (ctx , status .NewNopStatusReporter ()))
123122 for _ , edge := range tt .edges {
124123 assert .Less (t , ctx .order [edge [0 ]], ctx .order [edge [1 ]])
125124 }
@@ -161,7 +160,7 @@ func testGraphStartStopCycle(t *testing.T) {
161160 err := pg .StartAll (context .Background (), & Host {Reporter : status .NewReporter (func (* componentstatus.InstanceID , * componentstatus.Event ) {}, func (error ) {})})
162161 require .ErrorContains (t , err , `topo: no topological ordering: cyclic components` )
163162
164- err = pg .ShutdownAll (context .Background (), statustest .NewNopStatusReporter ())
163+ err = pg .ShutdownAll (context .Background (), status .NewNopStatusReporter ())
165164 assert .ErrorContains (t , err , `topo: no topological ordering: cyclic components` )
166165}
167166
@@ -196,7 +195,7 @@ func testGraphStartStopComponentError(t *testing.T) {
196195 T : e1 ,
197196 })
198197 require .ErrorIs (t , pg .StartAll (context .Background (), & Host {Reporter : status .NewReporter (func (* componentstatus.InstanceID , * componentstatus.Event ) {}, func (error ) {})}), r1 .startErr )
199- assert .EqualError (t , pg .ShutdownAll (context .Background (), statustest .NewNopStatusReporter ()), "bar" )
198+ assert .EqualError (t , pg .ShutdownAll (context .Background (), status .NewNopStatusReporter ()), "bar" )
200199}
201200
202201// This includes all tests from the previous implementation, plus a new one
@@ -276,7 +275,7 @@ func testGraphFailToStartAndShutdown(t *testing.T) {
276275 pipelines , err := Build (context .Background (), set )
277276 require .NoError (t , err )
278277 require .Error (t , pipelines .StartAll (context .Background (), & Host {Reporter : status .NewReporter (func (* componentstatus.InstanceID , * componentstatus.Event ) {}, func (error ) {})}))
279- assert .Error (t , pipelines .ShutdownAll (context .Background (), statustest .NewNopStatusReporter ()))
278+ assert .Error (t , pipelines .ShutdownAll (context .Background (), status .NewNopStatusReporter ()))
280279 })
281280
282281 t .Run (dt .String ()+ "/processor" , func (t * testing.T ) {
@@ -290,7 +289,7 @@ func testGraphFailToStartAndShutdown(t *testing.T) {
290289 pipelines , err := Build (context .Background (), set )
291290 require .NoError (t , err )
292291 require .Error (t , pipelines .StartAll (context .Background (), & Host {Reporter : status .NewReporter (func (* componentstatus.InstanceID , * componentstatus.Event ) {}, func (error ) {})}))
293- assert .Error (t , pipelines .ShutdownAll (context .Background (), statustest .NewNopStatusReporter ()))
292+ assert .Error (t , pipelines .ShutdownAll (context .Background (), status .NewNopStatusReporter ()))
294293 })
295294
296295 t .Run (dt .String ()+ "/exporter" , func (t * testing.T ) {
@@ -304,7 +303,7 @@ func testGraphFailToStartAndShutdown(t *testing.T) {
304303 pipelines , err := Build (context .Background (), set )
305304 require .NoError (t , err )
306305 require .Error (t , pipelines .StartAll (context .Background (), & Host {Reporter : status .NewReporter (func (* componentstatus.InstanceID , * componentstatus.Event ) {}, func (error ) {})}))
307- assert .Error (t , pipelines .ShutdownAll (context .Background (), statustest .NewNopStatusReporter ()))
306+ assert .Error (t , pipelines .ShutdownAll (context .Background (), status .NewNopStatusReporter ()))
308307 })
309308
310309 for _ , dt2 := range dataTypes {
@@ -324,7 +323,7 @@ func testGraphFailToStartAndShutdown(t *testing.T) {
324323 pipelines , err := Build (context .Background (), set )
325324 require .NoError (t , err )
326325 require .Error (t , pipelines .StartAll (context .Background (), & Host {Reporter : status .NewReporter (func (* componentstatus.InstanceID , * componentstatus.Event ) {}, func (error ) {})}))
327- assert .Error (t , pipelines .ShutdownAll (context .Background (), statustest .NewNopStatusReporter ()))
326+ assert .Error (t , pipelines .ShutdownAll (context .Background (), status .NewNopStatusReporter ()))
328327 })
329328 }
330329 }
0 commit comments