Skip to content

Commit

Permalink
fix: include timeout between agent and manager start
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebits committed Sep 3, 2024
1 parent e8540fe commit 9f22122
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
FIRST_SCAN_TIME = None
FIRST_SCAN_VULNERABILITIES_INDEX = {}
AGENT_REGISTRATION_TIMEOUT = 15
TIMEOUT_START_MANAGER = 60

VULNERABILITY_DETECTION_E2E_EXPECTED_ERRORS = [
r"Invalid ID \d{3} for the source",
Expand Down Expand Up @@ -182,6 +183,9 @@ def configure_vulnerability_detection_test_environment(
host_manager, vulnerability_detection_previously_enabled
)

# Wait for 1 minute to ensure all managers have fully started
time.sleep(TIMEOUT_START_MANAGER)

start_agent_and_wait_until_connected(host_manager)

if not vulnerability_detection_previously_enabled:
Expand Down

0 comments on commit 9f22122

Please sign in to comment.