Skip to content

Commit

Permalink
benchmark: log gearmand output in case of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jun 7, 2024
1 parent d69fd80 commit 693d647
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/modgearman/mod_gearman_worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ func BenchmarkJobs(b *testing.B) {
resultsTotal++
}
b.StopTimer()
cmd.Process.Kill()
if sendError != nil {
b.Log(stdout.String())
b.Log(stderr.String())
b.Fatalf(sendError.Error())
}
}
Expand Down

0 comments on commit 693d647

Please sign in to comment.