Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/test_stack_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ def test_osquery_stream_has_documents_in_openobserve() -> None:

def test_otel_collector_watches_falco_file_when_present(repo_root: Path) -> None:
FALCO_FILE_PATH.parent.mkdir(parents=True, exist_ok=True)
FALCO_FILE_PATH.touch(exist_ok=True)
if not FALCO_FILE_PATH.exists():
try:
FALCO_FILE_PATH.touch(exist_ok=True)
except PermissionError:
pass

_run(repo_root, ["docker", "compose", "restart", "otel-collector"])

Expand All @@ -130,4 +134,3 @@ def _watching_file() -> bool:
return "Started watching file" in logs and "/var/log/falco/events.jsonl" in logs

_wait_for(_watching_file)

4 changes: 2 additions & 2 deletions tools/trigger_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ def main() -> int:

# Allow pipelines 3s to process and ship logs
if args.all or args.stream:
print("\nWaiting 3 seconds for OpenTelemetry Collector and OpenObserve to process...")
time.sleep(3)
print("\nWaiting 6 seconds for OpenTelemetry Collector and OpenObserve to process...")
time.sleep(6)

if args.all or args.verify:
verify_all(minutes=args.window)
Expand Down
Loading