mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-13 17:14:05 -08:00
fix test file
Signed-off-by: zhaowang <zhaowang@apac.freewheel.com>
This commit is contained in:
parent
7a458ef01c
commit
b3972bbc1a
|
@ -553,7 +553,7 @@ func TestCheckRules(t *testing.T) {
|
|||
},
|
||||
} {
|
||||
t.Run("config-lint-fatal", func(t *testing.T) {
|
||||
_, err := checkConfig(false, "./testdata/prometheus-config.lint.yml", false, newLintConfig(lintOptionLongScrapeInterval, false, c.lookbackDelta))
|
||||
_, err := checkConfig(false, "./testdata/prometheus-config.lint.long_scrape_interval.yml", false, newLintConfig(lintOptionLongScrapeInterval, false, c.lookbackDelta))
|
||||
var errMsg string
|
||||
if err != nil {
|
||||
errMsg = err.Error()
|
||||
|
|
3
cmd/promtool/testdata/prometheus-config.lint.long_scrape_interval.yml
vendored
Normal file
3
cmd/promtool/testdata/prometheus-config.lint.long_scrape_interval.yml
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
scrape_configs:
|
||||
- job_name: long_scrape_interval_test
|
||||
scrape_interval: 10m
|
|
@ -1,3 +1,2 @@
|
|||
scrape_configs:
|
||||
- job_name: long_scrape_interval_test
|
||||
scrape_interval: 10m
|
||||
rule_files:
|
||||
- prometheus-rules.lint.yml
|
||||
|
|
Loading…
Reference in a new issue