mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Retrieval: Show error message for failed test scrape
This is flaky, and I suspect it was due the to I/O timeout that I've already fixed. In case that wasn't it, display the error should it happen again.
This commit is contained in:
parent
c6b88bc3d3
commit
50258929ac
|
@ -195,7 +195,9 @@ func TestTargetScrapeMetricRelabelConfigs(t *testing.T) {
|
|||
}
|
||||
|
||||
appender := &collectResultAppender{}
|
||||
testTarget.scrape(appender)
|
||||
if err := testTarget.scrape(appender); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// Remove variables part of result.
|
||||
for _, sample := range appender.result {
|
||||
|
|
Loading…
Reference in a new issue