Skip to content

Commit 7824052

Browse files
vsilentCopilot
andcommitted
fix: align test mutability and silence unused ptrace events var
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 56dcd95 commit 7824052

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/collectors/event_enrichment_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fn test_timestamp_normalization() {
143143

144144
#[test]
145145
fn test_enrichment_pipeline() {
146-
let enricher = EventEnricher::new().expect("Failed to create enricher");
146+
let mut enricher = EventEnricher::new().expect("Failed to create enricher");
147147
let mut event = SyscallEvent::new(1234, 1000, SyscallType::Execve, Utc::now());
148148

149149
// Run full enrichment pipeline

tests/collectors/ptrace_capture_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mod linux_tests {
2020

2121
std::thread::sleep(Duration::from_millis(100));
2222

23-
let events = monitor.poll_events();
23+
let _events = monitor.poll_events();
2424

2525
// Just verify monitor works without crashing
2626
assert!(true, "Monitor should handle ptrace detection gracefully");

0 commit comments

Comments
 (0)