mirror of
https://github.com/prometheus/prometheus.git
synced 2026-02-03 20:39:32 -05:00
scrape: clarify test channel name in manager_test (#17929)
Signed-off-by: Nova <adityaprakash1357908@gmail.com>
This commit is contained in:
parent
9eb78735cf
commit
5e66c9305f
1 changed files with 3 additions and 3 deletions
|
|
@ -581,8 +581,8 @@ func TestManagerTargetsUpdates(t *testing.T) {
|
|||
m, err := NewManager(&opts, nil, nil, nil, nil, testRegistry)
|
||||
require.NoError(t, err)
|
||||
|
||||
ts := make(chan map[string][]*targetgroup.Group)
|
||||
go m.Run(ts)
|
||||
targetSetsCh := make(chan map[string][]*targetgroup.Group)
|
||||
go m.Run(targetSetsCh)
|
||||
defer m.Stop()
|
||||
|
||||
tgSent := make(map[string][]*targetgroup.Group)
|
||||
|
|
@ -594,7 +594,7 @@ func TestManagerTargetsUpdates(t *testing.T) {
|
|||
}
|
||||
|
||||
select {
|
||||
case ts <- tgSent:
|
||||
case targetSetsCh <- tgSent:
|
||||
case <-time.After(10 * time.Millisecond):
|
||||
require.Fail(t, "Scrape manager's channel remained blocked after the set threshold.")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue