scrape: close manager gracefully at end. (#6044)

Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
johncming 2019-09-23 18:28:37 +08:00 committed by Julius Volz
parent 1e62435960
commit 4757c69157

View File

@ -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++ {