Skip to content

Commit

Permalink
fix(inputs.intel_powerstat): Unit tests should work on every platform
Browse files Browse the repository at this point in the history
  • Loading branch information
p-zak committed Dec 8, 2023
1 parent 6187389 commit b273c4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/inputs/intel_powerstat/intel_powerstat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,8 @@ func TestInit(t *testing.T) {
})

t.Run("FailedToParseConfigWithDuplicates", func(t *testing.T) {
t.Setenv("HOST_PROC", "./testdata")

logger := &testutil.CaptureLogger{}

p := &PowerStat{
Expand All @@ -715,6 +717,8 @@ func TestInit(t *testing.T) {
})

t.Run("FailedToParseConfigWithNegativeTimeout", func(t *testing.T) {
t.Setenv("HOST_PROC", "./testdata")

logger := &testutil.CaptureLogger{}

p := &PowerStat{
Expand Down

0 comments on commit b273c4c

Please sign in to comment.