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:
Brian Brazil 2015-09-23 09:24:50 +01:00
parent c6b88bc3d3
commit 50258929ac

View File

@ -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 {