Skip to content

Commit

Permalink
fix: now timeout is dynamic. #3085
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromalara committed Jul 28, 2022
1 parent 9aa3828 commit fa3765a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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([
Expand Down

0 comments on commit fa3765a

Please sign in to comment.