From fa3765a57f9f06864426293b3168272ea329db28 Mon Sep 17 00:00:00 2001 From: Mauro Malara Date: Thu, 28 Jul 2022 16:42:24 -0300 Subject: [PATCH] fix: now timeout is dynamic. #3085 --- .../end_to_end/test_yara_integration/test_yara_integration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/end_to_end/test_yara_integration/test_yara_integration.py b/tests/end_to_end/test_yara_integration/test_yara_integration.py index 2c8d27d961..32418abe9b 100644 --- a/tests/end_to_end/test_yara_integration/test_yara_integration.py +++ b/tests/end_to_end/test_yara_integration/test_yara_integration.py @@ -4,6 +4,7 @@ import pytest from tempfile import gettempdir +import wazuh_testing as fw from wazuh_testing import end_to_end as e2e from wazuh_testing import event_monitor as evm from wazuh_testing.tools import configuration as config @@ -45,7 +46,7 @@ def test_yara_integration(configure_environment, metadata, get_dashboard_credent # Check that alert has been raised and save timestamp raised_alert = evm.check_event(callback=expected_alert_json, file_to_monitor=alerts_json, - timeout=5, error_message='The alert has not occurred').result() + timeout=fw.T_5, error_message='The alert has not occurred').result() raised_alert_timestamp = raised_alert.group(1) query = e2e.make_query([