chore: Add comments in `*_wrong_map` tests

pull/1004/head
Michal Rostecki 2 months ago
parent 25d986a26d
commit e575712c59

@ -120,6 +120,8 @@ mod tests {
#[test]
fn test_try_from_wrong_map() {
// This is necessary to stop miri tripping over the PERF_EVENT_ARRAY
// logic and attempting to open a file to read number of online CPUs.
let map = new_map(test_utils::new_obj_map::<u32>(BPF_MAP_TYPE_ARRAY));
let map = Map::Array(map);

@ -249,6 +249,8 @@ mod tests {
#[test]
fn test_try_from_wrong_map() {
// This is necessary to stop miri tripping over the PERF_EVENT_ARRAY
// logic and attempting to open a file to read number of online CPUs.
let map = new_map(test_utils::new_obj_map::<u32>(BPF_MAP_TYPE_ARRAY));
let map = Map::Array(map);

Loading…
Cancel
Save