Commit f901f2c
authored
[chore][sqlserver/receiver] Correct 'CompareMetrics' parameters order (open-telemetry#41209)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
The `pmetrictest.CompareMetrics` function expects expected metrics first
and actual metrics second. However, in the SQL Server receiver tests,
the arguments are reversed — actual metrics are passed first, and
expected metrics second.
This causes confusing test failure messages, such as: number of metrics
doesn't match expected: `47`, actual: `46` — when in reality, the actual
metrics are `47` and the expected are `46`.1 parent 5534fd6 commit f901f2c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments