Skip to content

Commit

Permalink
fix static test
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed Oct 31, 2024
1 parent 4956997 commit 687acd9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions internal/static/traces/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1752,9 +1752,15 @@ load_balancing:
for componentID := range tc.expectedProcessors {
if len(tc.expectedProcessors[componentID]) > 0 {
assert.NotNil(t, tc.expectedProcessors)
assert.NotNil(t, actualConfig.Service.Pipelines[pipeline.MustNewID(componentID.Type().String())])
var p pipeline.ID
if componentID.Name() != "" {
p = pipeline.MustNewIDWithName(componentID.Type().String(), componentID.Name())
} else {
p = pipeline.MustNewID(componentID.Type().String())
}

assert.Equal(t, tc.expectedProcessors[componentID], actualConfig.Service.Pipelines[pipeline.MustNewID(componentID.Type().String())].Processors)
assert.NotNil(t, actualConfig.Service.Pipelines[p])
assert.Equal(t, tc.expectedProcessors[componentID], actualConfig.Service.Pipelines[p].Processors)
}
}
})
Expand Down

0 comments on commit 687acd9

Please sign in to comment.