mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Remove redundant return
Signed-off-by: zhaowang <zhaowang@apac.freewheel.com>
This commit is contained in:
parent
5489d74025
commit
485bf30ea9
|
@ -536,7 +536,6 @@ func TestCheckRules(t *testing.T) {
|
|||
_, err := checkConfig(false, "./testdata/prometheus-config.lint.yml", false, newLintConfig(lintOptionLongScrapeInterval, false))
|
||||
expectedErrMsg := "lint error Long Scrape Interval found. Data point will be marked as stale. Job: long_scrape_interval_test. Interval: 1h"
|
||||
require.Equalf(t, expectedErrMsg, err.Error(), "Expected error %q, got %q", expectedErrMsg, err.Error())
|
||||
return
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue