mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
remove code that will not be executed
Signed-off-by: sellskin <mydesk@yeah.net>
This commit is contained in:
parent
773170f372
commit
ff15b17400
|
@ -208,7 +208,6 @@ func (t *testRunner) requireUpdate(ref time.Time, expected []*targetgroup.Group)
|
||||||
select {
|
select {
|
||||||
case <-timeout:
|
case <-timeout:
|
||||||
t.Fatalf("Expected update but got none")
|
t.Fatalf("Expected update but got none")
|
||||||
return
|
|
||||||
case <-time.After(defaultWait / 10):
|
case <-time.After(defaultWait / 10):
|
||||||
if ref.Equal(t.lastReceive()) {
|
if ref.Equal(t.lastReceive()) {
|
||||||
// No update received.
|
// No update received.
|
||||||
|
|
|
@ -733,7 +733,6 @@ func verifyPresence(t *testing.T, tSets map[poolKey]map[string]*targetgroup.Grou
|
||||||
t.Helper()
|
t.Helper()
|
||||||
if _, ok := tSets[poolKey]; !ok {
|
if _, ok := tSets[poolKey]; !ok {
|
||||||
t.Fatalf("'%s' should be present in Pool keys: %v", poolKey, tSets)
|
t.Fatalf("'%s' should be present in Pool keys: %v", poolKey, tSets)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
match := false
|
match := false
|
||||||
|
|
|
@ -733,7 +733,6 @@ func verifySyncedPresence(t *testing.T, tGroups map[string][]*targetgroup.Group,
|
||||||
t.Helper()
|
t.Helper()
|
||||||
if _, ok := tGroups[key]; !ok {
|
if _, ok := tGroups[key]; !ok {
|
||||||
t.Fatalf("'%s' should be present in Group map keys: %v", key, tGroups)
|
t.Fatalf("'%s' should be present in Group map keys: %v", key, tGroups)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
match := false
|
match := false
|
||||||
var mergedTargets string
|
var mergedTargets string
|
||||||
|
|
Loading…
Reference in a new issue