mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
scrape: close manager gracefully at end. (#6044)
Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
parent
1e62435960
commit
4757c69157
|
@ -339,6 +339,7 @@ func TestManagerTargetsUpdates(t *testing.T) {
|
||||||
|
|
||||||
ts := make(chan map[string][]*targetgroup.Group)
|
ts := make(chan map[string][]*targetgroup.Group)
|
||||||
go m.Run(ts)
|
go m.Run(ts)
|
||||||
|
defer m.Stop()
|
||||||
|
|
||||||
tgSent := make(map[string][]*targetgroup.Group)
|
tgSent := make(map[string][]*targetgroup.Group)
|
||||||
for x := 0; x < 10; x++ {
|
for x := 0; x < 10; x++ {
|
||||||
|
|
Loading…
Reference in a new issue