Skip to content

Commit

Permalink
Fix path to log files for benchmark.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Feb 11, 2019
1 parent 997e719 commit fb32298
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/mtail/benchmarks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ func BenchmarkProgram(b *testing.B) {
}

var total int64
dataLogFile := path.Join("../..", bm.logfile)
b.ResetTimer()
for i := 0; i < b.N; i++ {
l, err := os.Open(dataLogFile)
l, err := os.Open(bm.logfile)
if err != nil {
b.Fatalf("Couldn't open logfile: %s", err)
}
Expand Down

0 comments on commit fb32298

Please sign in to comment.