Skip to content

Commit 07fb080

Browse files
sincejuneFiery-Fenix
authored andcommitted
[chore] Fix SqlServerScraper test on Windows (open-telemetry#38852)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description We removed 2 warnings in open-telemetry#38831 , and this PR updates corresponding test on Windows. cc @atoulme @crobert-1 <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#38842 <!--Describe what testing was performed and which tests were added.--> #### Testing Updated <!--Describe the documentation added.--> #### Documentation n/a <!--Please delete paragraphs that you did not use before submitting.-->
1 parent 78528a2 commit 07fb080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

receiver/sqlserverreceiver/scraper_windows_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func TestSqlServerScraper(t *testing.T) {
9191

9292
assert.NoError(t, s.start(context.Background(), nil))
9393
assert.Empty(t, s.watcherRecorders)
94-
assert.Equal(t, 23, obsLogs.Len())
94+
assert.Equal(t, 21, obsLogs.Len())
9595
assert.Equal(t, 21, obsLogs.FilterMessageSnippet("failed to create perf counter with path \\SQLServer:").Len())
9696
assert.Equal(t, 21, obsLogs.FilterMessageSnippet("The specified object was not found on the computer.").Len())
9797
assert.Equal(t, 1, obsLogs.FilterMessageSnippet("\\SQLServer:General Statistics\\").Len())

0 commit comments

Comments
 (0)