From f2c36eea65aee78d5b7a9fd287f17757965de19b Mon Sep 17 00:00:00 2001 From: Tudor Golubenco Date: Mon, 27 Jun 2016 14:13:22 +0200 Subject: [PATCH] Reduce the polling interval in metricbeat sys tests (#1912) The theory goes that on the Jenkins slave, when doing % every 5s there's no process that has significant CPU time. Reducing this to 1s should lower the chance of that happening and probably also speed up the tests. --- metricbeat/tests/system/test_filtering.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/metricbeat/tests/system/test_filtering.py b/metricbeat/tests/system/test_filtering.py index bdb46da4752..ab60c91215c 100644 --- a/metricbeat/tests/system/test_filtering.py +++ b/metricbeat/tests/system/test_filtering.py @@ -12,7 +12,7 @@ def test_drop_fields(self): modules=[{ "name": "system", "metricsets": ["cpu"], - "period": "5s" + "period": "1s" }], drop_fields={ "condition": "range.system.cpu.system.pct.lt: 0.1", @@ -50,7 +50,7 @@ def test_dropfields_with_condition(self): modules=[{ "name": "system", "metricsets": ["process"], - "period": "5s" + "period": "1s" }], drop_fields={ "fields": ["system.process.memory"], @@ -82,7 +82,7 @@ def test_dropevent_with_condition(self): modules=[{ "name": "system", "metricsets": ["process"], - "period": "5s" + "period": "1s" }], drop_event={ "condition": "range.system.process.cpu.total.pct.lt: 0.001", @@ -109,7 +109,7 @@ def test_include_fields(self): modules=[{ "name": "system", "metricsets": ["process"], - "period": "5s" + "period": "1s" }], include_fields={"fields": ["system.process.cpu", "system.process.memory"]}, ) @@ -149,7 +149,7 @@ def test_multiple_actions(self): modules=[{ "name": "system", "metricsets": ["process"], - "period": "5s" + "period": "1s" }], include_fields={"fields": ["system.process"]}, drop_fields={"fields": ["system.process.memory"]}, @@ -188,7 +188,7 @@ def test_contradictory_multiple_actions(self): modules=[{ "name": "system", "metricsets": ["process"], - "period": "5s" + "period": "1s" }], include_fields={"fields": ["system.process.memory.size", "proc.memory.rss.pct"]}, drop_fields={"fields": ["system.process.memory.size", "proc.memory.rss.pct"]},