Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
VihasMakwana committed Jul 23, 2024
1 parent 0293645 commit add7a45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metricbeat/module/system/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ def test_process_summary(self):

for evt in output:
self.assert_fields_are_documented(evt)
if evt.get("error", None) is not None:
# errors are non-fatal errors logged by system/process. Ignore and proceed furture
continue

summary = evt["system"]["process"]["summary"]
assert isinstance(summary["total"], int)
Expand Down

0 comments on commit add7a45

Please sign in to comment.