@@ -109,7 +109,7 @@ func delivery(t *testing.T, ctrl *gomock.Controller, payload []byte) *consumermo
109109
110110func processPayload (t * testing.T , id string ) []byte {
111111 t .Helper ()
112- b , err := stovepipemq .Marshal (& stovepipemq.ProcessRequest {Id : id })
112+ b , err := stovepipemq .Marshal (& stovepipemq.ProcessRequest {Id : id , QueueName : testQueue })
113113 require .NoError (t , err )
114114 return b
115115}
@@ -313,7 +313,7 @@ func TestProcessEmitsAdmittedStrategyMetric(t *testing.T) {
313313
314314 require .NoError (t , c .Process (context .Background (), delivery (t , ctrl , processPayload (t , testID ))))
315315
316- counter , ok := scope .Snapshot ().Counters ()["test.process_controller.process.admitted+strategy=full" ]
316+ counter , ok := scope .Snapshot ().Counters ()["test.process_controller.process.admitted+queue=monorepo/main, strategy=full" ]
317317 require .True (t , ok )
318318 assert .Equal (t , int64 (1 ), counter .Value ())
319319}
@@ -338,7 +338,7 @@ func TestProcessEmitsSourceControlResolutionMetric(t *testing.T) {
338338
339339 require .Error (t , c .Process (context .Background (), delivery (t , ctrl , processPayload (t , testID ))))
340340
341- counter , ok := scope .Snapshot ().Counters ()["test.process_controller.process.source_control_errors+stage=resolve" ]
341+ counter , ok := scope .Snapshot ().Counters ()["test.process_controller.process.source_control_errors+queue=monorepo/main, stage=resolve" ]
342342 require .True (t , ok )
343343 assert .Equal (t , int64 (1 ), counter .Value ())
344344}
0 commit comments