summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose_test.go')
-rw-r--r--src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose_test.go b/src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose_test.go
index ccbb072bf7..fa758bcd32 100644
--- a/src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose_test.go
+++ b/src/go/collectors/go.d.plugin/agent/discovery/sd/pipeline/compose_test.go
@@ -38,7 +38,8 @@ func TestConfigComposer_compose(t *testing.T) {
name: {{ .Name }}-5
- selector: "bar6"
template: |
- name: {{ .Name }}-6
+ - name: {{ .Name }}-6
+ - name: {{ .Name }}-7
`
tests := map[string]struct {
target model.Target
@@ -70,6 +71,7 @@ func TestConfigComposer_compose(t *testing.T) {
{"name": "mock-4"},
{"name": "mock-5"},
{"name": "mock-6"},
+ {"name": "mock-7"},
},
},
}