Skip to content

Commit

Permalink
[chore] Fix windows tests (open-telemetry#33456)
Browse files Browse the repository at this point in the history
Fixes tests in
open-telemetry#32799
  • Loading branch information
djaglowski committed Jun 10, 2024
1 parent ad61590 commit 18d0d39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions receiver/iisreceiver/scraper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,7 @@ func (mpc *mockPerfCounter) ScrapeData() ([]winperfcounters.CounterValue, error)
func (mpc *mockPerfCounter) Close() error {
return nil
}

func (mpc *mockPerfCounter) Reset() error {
return nil
}
4 changes: 4 additions & 0 deletions receiver/sqlserverreceiver/scraper_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ func (_m *mockPerfCounterWatcher) ScrapeData() ([]winperfcounters.CounterValue,
return r0, r1
}

func (_m *mockPerfCounterWatcher) Reset() error {
return nil
}

func TestSqlServerScraper(t *testing.T) {
factory := NewFactory()
cfg := factory.CreateDefaultConfig().(*Config)
Expand Down

0 comments on commit 18d0d39

Please sign in to comment.