fix: report metrics to prometheus

This commit is contained in:
徐聪
2022-07-25 21:31:10 +08:00
parent 6a812c6374
commit 4784d16639
4 changed files with 12 additions and 32 deletions
+3 -2
View File
@@ -927,14 +927,15 @@ func (r *workerRunner) start() {
close(r.doneChan)
// notify master that worker is stopped
r.onStopped()
// wait until all stats are reported successfully
<-r.reportedChan
// report test result
r.reportTestResult()
// output teardown
r.outputOnStop()
// notify master that worker is stopped
r.onStopped()
}()
// start stats report