mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 07:52:28 +00: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 New Issue
Block a user