@@ -389,9 +389,7 @@ func TestFactoryCreateProfileProcessor(t *testing.T) {
389389 p .ResourceProfiles [0 ].ScopeProfiles [0 ].Profile [0 ].OriginalPayloadFormat = "pass"
390390 return p .Transform ()
391391 },
392- createProfiles : func () pprofile.Profiles {
393- return basicProfiles ().Transform ()
394- },
392+ createProfiles : basicProfiles ().Transform ,
395393 },
396394 {
397395 name : "create profiles processor and pass profile context with a statement condition that meets the specified condition" ,
@@ -402,20 +400,14 @@ func TestFactoryCreateProfileProcessor(t *testing.T) {
402400 p .ResourceProfiles [0 ].ScopeProfiles [0 ].Profile [0 ].OriginalPayloadFormat = "pass"
403401 return p .Transform ()
404402 },
405- createProfiles : func () pprofile.Profiles {
406- return basicProfiles ().Transform ()
407- },
403+ createProfiles : basicProfiles ().Transform ,
408404 },
409405 {
410406 name : "create profiles processor and pass log context with a global condition that fails the specified condition" ,
411407 conditions : []string {`original_payload_format == "operationB"` },
412408 statements : []string {`set(original_payload_format, "pass")` },
413- want : func () pprofile.Profiles {
414- return basicProfiles ().Transform ()
415- },
416- createProfiles : func () pprofile.Profiles {
417- return basicProfiles ().Transform ()
418- },
409+ want : basicProfiles ().Transform ,
410+ createProfiles : basicProfiles ().Transform ,
419411 },
420412 }
421413
0 commit comments