Skip to content

Commit

Permalink
Correct typo on locust error occurrences datapoint (#1676)
Browse files Browse the repository at this point in the history
Since locustio/locust@f0a5f89 the typo had been fixed.
  • Loading branch information
thomasdegiacinto committed Nov 7, 2022
1 parent 72c8916 commit 51e683b
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 82 deletions.
4 changes: 2 additions & 2 deletions bzt/modules/_locustio.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ def point_from_locust(timestamp, sid, data):

for err in data['errors'].values():
if err['name'] == item['name']:
new_err = KPISet.error_item_skel(err['error'], None, err['occurences'], KPISet.ERRTYPE_ERROR,
new_err = KPISet.error_item_skel(err['error'], None, err['occurrences'], KPISet.ERRTYPE_ERROR,
Counter(), None)
KPISet.inc_list(kpiset[KPISet.ERRORS], ("msg", err['error']), new_err)
kpiset[KPISet.FAILURES] += err['occurences']
kpiset[KPISet.FAILURES] += err['occurrences']

kpiset[KPISet.SUCCESSES] = kpiset[KPISet.SAMPLE_COUNT] - kpiset[KPISet.FAILURES]
point[DataPoint.CURRENT][item['name']] = kpiset
Expand Down
1 change: 1 addition & 0 deletions site/dat/docs/changes/fix-locust-typo.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix locust typo in when processing datapoint.
Loading

0 comments on commit 51e683b

Please # to comment.