Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shalper2 committed Sep 13, 2023
1 parent 20a069f commit af05d7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions receiver/splunkenterprisereceiver/scraper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ func TestScraper(t *testing.T) {
require.NoError(t, err)

expectedFile := filepath.Join("testdata", "scraper", "expected.yaml")
// golden.WriteMetrics(t, expectedFile, actualMetrics) // run tests with this line whenever metrics are modified


expectedMetrics, err := golden.ReadMetrics(expectedFile)
require.NoError(t, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resourceMetrics:
- resource: {}
scopeMetrics:
- metrics:
- description: Gauge tracking average KBps throughput of indexer
- description: Gauge tracking average bytes per second throughput of indexer
gauge:
dataPoints:
- asDouble: 25579.690815904476
Expand Down

0 comments on commit af05d7b

Please sign in to comment.