Skip to content

Commit

Permalink
[chore][pkg/stanza] Move common file testing utilities to new filetes…
Browse files Browse the repository at this point in the history
…t package (#29661)
  • Loading branch information
djaglowski authored Dec 5, 2023
1 parent 30a72f3 commit 0592999
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 178 deletions.
3 changes: 2 additions & 1 deletion pkg/stanza/fileconsumer/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/fileconsumer/internal/filetest"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/fileconsumer/internal/fingerprint"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/testutil"
)
Expand Down Expand Up @@ -150,7 +151,7 @@ func BenchmarkFileInput(b *testing.B) {

var files []*benchFile
for _, path := range bench.paths {
file := openFile(b, filepath.Join(rootDir, path))
file := filetest.OpenFile(b, filepath.Join(rootDir, path))
files = append(files, simpleTextFile(b, file))
}

Expand Down
Loading

0 comments on commit 0592999

Please sign in to comment.