Skip to content

Commit c8a2b84

Browse files
vsilentCopilot
andcommitted
test: fix ebpf loader creation assertion for linux builds
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f919cc9 commit c8a2b84

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/collectors/ebpf/loader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,10 @@ mod tests {
305305
fn test_ebpf_loader_creation() {
306306
let loader = EbpfLoader::new();
307307

308-
#[cfg(all(target_os = "linux", feature = "ebpf"))]
308+
#[cfg(target_os = "linux")]
309309
assert!(loader.is_ok());
310310

311-
#[cfg(not(all(target_os = "linux", feature = "ebpf")))]
311+
#[cfg(not(target_os = "linux"))]
312312
assert!(loader.is_err());
313313
}
314314

0 commit comments

Comments
 (0)