mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
Address krasi's comments
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
1cee5b5b06
commit
8289501420
|
@ -899,18 +899,7 @@ func TestCoordinationWithReceiver(t *testing.T) {
|
|||
expected []expect
|
||||
}{
|
||||
{
|
||||
title: "Receiver should get an empty map even when the provider sends nothing and closes the channel",
|
||||
providers: map[string]Discoverer{
|
||||
"empty": &onceProvider{},
|
||||
},
|
||||
expected: []expect{
|
||||
{
|
||||
tgs: map[string][]*targetgroup.Group{},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "Receiver should get updates even when one provider closes its channel",
|
||||
title: "Receiver should get all updates even when one provider closes its channel",
|
||||
providers: map[string]Discoverer{
|
||||
"once1": &onceProvider{
|
||||
tgs: []*targetgroup.Group{
|
||||
|
@ -962,7 +951,7 @@ func TestCoordinationWithReceiver(t *testing.T) {
|
|||
},
|
||||
},
|
||||
{
|
||||
title: "Receiver should get updates even when the channel is blocked",
|
||||
title: "Receiver should get all updates even when the channel is blocked",
|
||||
providers: map[string]Discoverer{
|
||||
"mock1": newMockDiscoveryProvider(
|
||||
update{
|
||||
|
|
Loading…
Reference in a new issue