Browse Source

Merge pull request #13835 from sellskin/main

[STYLE] Discovery tests: remove code that will not be executed
pull/13838/head
Bryan Boreham 8 months ago committed by GitHub
parent
commit
b6c144ab2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      discovery/file/file_test.go
  2. 1
      discovery/legacymanager/manager_test.go
  3. 1
      discovery/manager_test.go

1
discovery/file/file_test.go

@ -208,7 +208,6 @@ func (t *testRunner) requireUpdate(ref time.Time, expected []*targetgroup.Group)
select {
case <-timeout:
t.Fatalf("Expected update but got none")
return
case <-time.After(defaultWait / 10):
if ref.Equal(t.lastReceive()) {
// No update received.

1
discovery/legacymanager/manager_test.go

@ -733,7 +733,6 @@ func verifyPresence(t *testing.T, tSets map[poolKey]map[string]*targetgroup.Grou
t.Helper()
if _, ok := tSets[poolKey]; !ok {
t.Fatalf("'%s' should be present in Pool keys: %v", poolKey, tSets)
return
}
match := false

1
discovery/manager_test.go

@ -733,7 +733,6 @@ func verifySyncedPresence(t *testing.T, tGroups map[string][]*targetgroup.Group,
t.Helper()
if _, ok := tGroups[key]; !ok {
t.Fatalf("'%s' should be present in Group map keys: %v", key, tGroups)
return
}
match := false
var mergedTargets string

Loading…
Cancel
Save