Skip to content

Commit fb32298

Browse files
committed
Fix path to log files for benchmark.
1 parent 997e719 commit fb32298

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/mtail/benchmarks_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ func BenchmarkProgram(b *testing.B) {
4242
}
4343

4444
var total int64
45-
dataLogFile := path.Join("../..", bm.logfile)
4645
b.ResetTimer()
4746
for i := 0; i < b.N; i++ {
48-
l, err := os.Open(dataLogFile)
47+
l, err := os.Open(bm.logfile)
4948
if err != nil {
5049
b.Fatalf("Couldn't open logfile: %s", err)
5150
}

0 commit comments

Comments
 (0)