Skip to content

Commit

Permalink
[receiver/hostmetrics] Skip a failing test on unsupported systems (#8557
Browse files Browse the repository at this point in the history
)

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.
  • Loading branch information
dmitryax committed Mar 21, 2022
1 parent ba8c797 commit 5a82efc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5a82efc

Please sign in to comment.