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