From 5a82efcbee0c8c0d14f3f4bc0bcd8d3c0c6c7c54 Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Mon, 21 Mar 2022 05:14:55 -0700 Subject: [PATCH] [receiver/hostmetrics] Skip a failing test on unsupported systems (#8557) Process scraper is only available on Windows and Linux. Most of the tests are skipped on other systems while `TestScrapeMetrics_MuteProcessNameError` is still enabled and failing. --- .../internal/scraper/processscraper/process_scraper_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go b/receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go index 8195ecaf7a84..2b0112874c7c 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go @@ -499,6 +499,8 @@ func getExpectedScrapeFailures(nameError, exeError, timeError, memError, diskErr } func TestScrapeMetrics_MuteProcessNameError(t *testing.T) { + skipTestOnUnsupportedOS(t) + processNameError := errors.New("err1") type testCase struct {