mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
Ensure all values are used or _
This commit is contained in:
parent
8740fcc657
commit
ee88f0d222
|
@ -253,7 +253,7 @@ func (g *Group) copyState(from *Group) {
|
|||
}
|
||||
|
||||
for i, rule := range g.rules {
|
||||
indexes, ok := ruleMap[rule.Name()]
|
||||
indexes, _ := ruleMap[rule.Name()]
|
||||
if len(indexes) == 0 {
|
||||
continue
|
||||
}
|
||||
|
|
|
@ -61,13 +61,16 @@ func TestStoreHTTPErrorHandling(t *testing.T) {
|
|||
|
||||
serverURL, err := url.Parse(server.URL)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
c, err := NewClient(0, &clientConfig{
|
||||
url: &config.URL{serverURL},
|
||||
timeout: model.Duration(time.Second),
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
err = c.Store(nil)
|
||||
if !reflect.DeepEqual(err, test.err) {
|
||||
|
|
Loading…
Reference in a new issue